[RFC] niri/window: add col/max_col parameters #4530
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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]