Throw windows across monitors with Super+Shift+arrows - #8722
Draft
anagrius wants to merge 1 commit into
Draft
Conversation
Swap still rearranges tiles on the current workspace. When nothing is in that direction, move the window onto the adjacent monitor instead of swapping with a window there, and land it on the incoming edge.
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.
What
Super+Shift+arrowsstill swaps with a neighbor on the current workspace. When there isn't one in that direction, it now moves the window onto the adjacent monitor instead of swapping with a window there (or doing nothing if that workspace is empty).A throw also lands on the incoming edge of the destination. Dwindle's
force_split = 2would otherwise insert a rightward throw on the far side.Why
Hyprland's directional swap looks across monitors. With one window per screen that exchanges them. With an empty target, nothing happens. Same-workspace swap is unchanged, which is what the manual demonstrates on a single display.
Test plan