Overview

libi3

Ultra-short introduction

This is a MIT-licensed library to interface with i3wm via its IPC interface, requiring Batteries. Install it via OPAM or whatever.

Installing

./configure
make
make install

Example

This example retrieves the workspaces list as JSON (already parsed with Yojson).

open I3;;

let workspaces = get_workspaces socketpath

Bugs

First of all, this is really WIP, so don't use it if you worry about stability. I didn't implement the SUSCRIBE query, because I'll have to understand it first ...