Settings

Theme

Show HN: Qt bindings for i3wm's IPC interface

qi3pc.hantz.sh

2 points by vhantz 8 days ago · 3 comments · 1 min read

Reader

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.

rubymamis 8 days ago

Nice! Thanks for that.

  • vhantzOP 8 days ago

    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!

    • rubymamis 7 days ago

      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 (:

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection