A pure OCaml implementation of the i3 IPC protocol.
This library allows you to communicate with a running instance of i3, run commands, query information about the state of the WM, and subscribe to events.
opam install i3ipc
-
As an example, examples/i3_msg.ml is a 60 lines reimplementation of
i3-msg
using this library.Run
make examples
to build the examples; they will appear in_build/default/examples/
.