sawfish-client
A library for handling communication with the Sawfish window manager to
allow remote form evaluation. In other words, Rust implementation of the
sawfish-client program shipped with Sawfish.
Example usage
Furthermore, the crate comes with an example binary which can be examined to see how the library functions.
Features
The crate defines the following Cargo feature:
-
async— addsAsyncClienttype which usesfuture_iotraits to support asynchronous I/O. It can be used with any async runtime so long as a compatible async I/O object is provided. Because opening the Unix socket depends on the runtime, withAsyncClientthat now must be done by the caller. -
tokio— addsTokioClienttype alias andopen_tokiofunction which simplify using the library with the Tokio async runtime. This feature does not introduce any new capabilities tosawfish-clientbut is provided for convenience of Tokio users. This feature impliesasync. -
expemirental-xcb— adds experimental support for X11-based communication with Sawfish. Normally, the library connects to Sawfish via a Unix socket. With this feature, if connecting to the socket fails, it tries to use X11-based communication instead. Note that this feature is only supported with synchronous client.