Skip to content

Throw windows across monitors with Super+Shift+arrows - #8722

Draft
anagrius wants to merge 1 commit into
basecamp:quattrofrom
anagrius:feat/swap-or-move-across-monitors
Draft

Throw windows across monitors with Super+Shift+arrows#8722
anagrius wants to merge 1 commit into
basecamp:quattrofrom
anagrius:feat/swap-or-move-across-monitors

Conversation

@anagrius

@anagrius anagrius commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

What

Super+Shift+arrows still 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 = 2 would otherwise insert a rightward throw on the far side.

Monitors as boxes, windows as boxes inside them. Three before/after cases: empty destination, occupied destination, and landing 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

  • Two tiled windows on one workspace: Super+Shift+Left/Right still swaps them
  • One window on the right monitor, empty left monitor: Super+Shift+Left moves it over
  • One window on each monitor: Super+Shift+Left from the right monitor joins the left workspace; the left window stays
  • Throw from left to right: incoming window is on the left of the right monitor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant