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
- See the API documentation
- As an example, examples/i3_msg.ml is a 60 lines
i3-msgusing this library.
./configure --enable-examples && make at the root of the project
should build the examples (as well as the library itself).