feat(scrolling): add infinite_loop option for wrap-around focus navigation#354
Open
qeude wants to merge 1 commit into
Open
feat(scrolling): add infinite_loop option for wrap-around focus navigation#354qeude wants to merge 1 commit into
qeude wants to merge 1 commit into
Conversation
Allows focus navigation to wrap from last column to first and vice versa. Disabled by default. Config: [settings.layout.scrolling] infinite_loop = true
sj-cstar
reviewed
May 22, 2026
| /// If true, focusing left from the first column wraps to the last, | ||
| /// and focusing right from the last column wraps to the first. | ||
| #[serde(default = "no")] | ||
| pub infinite_loop: bool, |
Contributor
There was a problem hiding this comment.
Would a better name be warp_around_navigation ?
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 an
infinite_loopoption to the scrolling layout that makes horizontal focus navigation wrap around instead of stopping at the edges.Motivation
In the scrolling layout, reaching the last column and pressing
focus rightcurrently does nothing. Some users expect the focus to jump back to the first column, similar to how workspace cycling works in other WMs.Changes
infinite_loop: booltoScrollingLayoutConfig(defaults tofalseto preserve existing behavior)focus_next/focus_prevto wrap when enabledwindow_in_directionfor consistencyExample
Add this to your
rift.tomlunder[settings.layout.scrolling]:With this config,
focus righton the last column jumps to the first, andfocus lefton the first column jumps to the last.