feat(actions): add output-boundary traversal for window focus and move - #18
Open
oldirtty wants to merge 2 commits into
Open
feat(actions): add output-boundary traversal for window focus and move#18oldirtty wants to merge 2 commits into
oldirtty wants to merge 2 commits into
Conversation
Adds window-focus-or-output-{left,right} and
window-move-or-output-{left,right}: falls through to focusing/moving to
the adjacent output when the column is already at the edge. Vertical
(up/down) variants land in a follow-up commit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds new IPC actions that extend the existing focus/movement commands to cross output boundaries:
window-focus-or-output-left/window-focus-or-output-rightwindow-focus-or-output-up/window-focus-or-output-downwindow-move-or-output-left/window-move-or-output-rightwindow-move-or-output-up/window-move-or-output-downWhen the focused window is already at the edge of its row or column, instead of silently doing nothing, these actions focus the adjacent output in that direction or move the focused window's column to that output. This matches the behavior of Niri and makes monitor navigation seamless across both axes in scrollable-tiling layouts.
The original
window-focus-left/right/up/downandwindow-move-left/right/up/downactions remain unchanged for users who prefer workspace-local behavior.Motivation
Got used to the Niri feature, and was struggling without it. I use only horizontal output traversal; but this PR completes the feature with vertical support as well for consistent monitor navigation in both axes.
Type of Change
Related Issue
None
Testing
Manual Coverage
Screenshots / Videos
N/A
Checklist
CONTRIBUTING.md.just format, or this PR has no C++ changes.docs/andexamples/config.toml, or this PR does not change user-facing configuration or behavior.