Skip to content

Show HN: Qt bindings for i3wm's IPC interface

qi3pc.hantz.sh
2 pointsvhantz3 comments
On HN

A handful of C++ libraries already exist for interprocess communication with i3wm. However, integrating them with Qt tends to require quite a lot of boilerplate. For my own projects, none of them could be integrated in a way that feels clean enough to my taste, so I decided to build my own library to do just that.

The result is qi3pc. A simple C++ library that provides idiomatic Qt bindings for i3wm's IPC interface.

Getting information from i3 is as simple as sending a message and waiting for a reply or subscribing to events and waiting for them to be triggered. This is done with the signal/slot mechanisms offered by Qt and normal C++ functions.

Comments

Nice! Thanks for that.

Oh were you looking for something like that?

BTW thanks for Daino! I'm working on assembling a set of tools to easily build and manage a personal knowledge base locally. I was worried I would have to build every piece myself, specially for note taking, so I was really glad to find Daino!

Oh that's awesome to hear! I have been playing with the idea of creating a desktop environment. Don't know if necessarily using i3wm but it's good to have your library if I do (:

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.