i3ipc-rs
A Rust library for controlling i3-wm through its IPC interface.
Usage
Add this to your Cargo.toml
[]
= "0.8.4"
Messages:
extern crate i3ipc;
use I3Connection;
Events:
extern crate i3ipc;
use I3EventListener;
use Subscription;
use Event;
Versioning
By default i3ipc-rs targets minimum i3 version 4.11. To unlock additional features you can increase this by selecting one of "i3-4-12"
, ..., "i3-4-14"
in Cargo.toml.
[dependencies.i3ipc]
version = "0.8.4"
features = ["i3-4-14"]
Additions to the i3 IPC interface that are not understood by your compiled binary will generally return an Unknown
value and log a warning to the target "i3ipc"
using the log crate. Binaries using this library should install a logger to view details of such additions.