Join GitHub today
Support subscribing to specific event types #3462
I'm submitting a…
[ ] Bug [x] Feature Request [ ] Documentation Request [ ] Other (Please describe in detail)
We can only subscribe to all the types of a specific event eg you might be interested only in window::focus events but you'll also receive window::new events. Some ipc libraries (eg i3ipc-python) do this themselves by only keeping the event types the user requests and dropping everything else.
We can subscribe to specific event types by sending messages like this:
One benefit is that users will be able to use
It's also better for performance / io operations because the data exchanged between i3 and clients can be reduced if the new feature is used by the libraries.