Skip to content

Conversation

@martinetd
Copy link

Hello!

Happy waybar user here. I've been told niri now gives away some information about the workspace we could use, so here's to scratching my own itch.
I'm sure someone could do better but it's Good Enough.

This also probably kinda fixes #3653 ? as I think the idea is the same, avoiding the workspace growing too wide.
Happy to try to find a few niri users to ping for review if you'd like.

Commit message below.


niri v25.08 added window positions to IPC, so waybar actually has the information stored in json around.

This handles the associated WindowLayoutsChanged IPC message to keep the position up to date in memory, and adds a couple of format messages to show the current column, so one can dislpay where we are in the workspace (in the hope of improving this feeling of being lost...)

Ideally a visual representation of the workspace like the one illustrated in the PR[1] would be even better but this will probably do for now.

Link: YaLTeR/niri#1265 (comment) [1]

niri v25.08 added window positions to IPC, so waybar actually has the
information stored in json around.

This handles the associated WindowLayoutsChanged IPC message to keep the
position up to date in memory, and adds a couple of format messages to
show the current column, so one can dislpay where we are in the
workspace (in the hope of improving this feeling of being lost...)

Ideally a visual representation of the workspace like the one
illustrated in the PR[1] would be even better but this will probably do
for now.

Link: YaLTeR/niri#1265 (comment) [1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Add Niri window count module

1 participant