Events IPC #411
mentalblock
started this conversation in
Ideas
Events IPC
#411
Replies: 3 comments 11 replies
|
Why a separate socket? My plan is to just make a |
9 replies
|
It's implemented now: https://github.com/YaLTeR/niri/wiki/IPC#event-stream |
2 replies
|
You can use niri msg windows | grep windows-id | wc -l
…On Mon, Jun 16, 2025, 2:22 AM Ivan Molodetskikh ***@***.***> wrote:
Everything you mentioned is possible (Waybar implements it for example).
This discussion has a bunch of examples for workspaces: #356
<#356>
—
Reply to this email directly, view it on GitHub
<#411 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFC4R2VE2EB6CDFWLYC3BD33DZPBNAVCNFSM6AAAAAB7LWI222VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNBXHEZDOMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I would like to suggest a separate, read-only Events IPC socket. This is something that the Hyprland compositor provides.
All events can be monitored by watching this socket. This would allow bars that have no plans to implement Wayland protocols to retrieve status changes immediately and efficiently. In particular, Eww is the bar I currently use. It has a listening mechanism,
deflisten, that monitors the output of a command and updates the bar UI.In summary, if Niri had a read-only Events IPC, I would then be able to use the
socatutility to extract and parse whatever Niri state I would like. It is lightweight and responsive method. My only use case at the moment is for workspaces status and focused window titles, but I am sure others would leverage this to suit their needs.Related discussions and issues:
All reactions