Add set / unset actions for maximize-column (or expose its state via IPC) #4371
pundemia-dev
started this conversation in
Ideas
Replies: 3 comments
|
Will note you can monitor the existing size of the window and then use that to see if it's maximized or not |
0 replies
|
It would also be nice if niri msg action set-window-width 100%
niri msg action maximize-column # Invisible state
# ...
niri msg action maximize-column # we're stuck |
0 replies
|
Set actions for those sound reasonable yeah |
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.
maximize-column is currently only available as a toggle action.
This makes it difficult to write reliable automation scripts using niri msg event-stream. For example, I have a small script that automatically switches between a terminal and Zed in a tabbed column:
With only a toggle action, there is no reliable source of truth. The script can easily get out of sync if:
the user manually presses the maximize-column keybinding;
another script calls maximize-column;
another window joins the tabbed column or focus changes unexpectedly.
set-column-display already provides idempotent actions (set-column-display normal/tabbed), which makes scripting straightforward.
It would be great to have something similar for column maximization, for example:
or
Alternatively, exposing the current maximized state through the IPC (e.g. in focused-window, windows, or another command) would also solve the problem.
This would make automation much more robust without affecting existing behavior.
All reactions