Skip to content

feat: move window to adjacent monitor on repeated half tiling - #497

Open
vitosans wants to merge 1 commit into
ubuntu:mainfrom
vitosans:pr/move-to-adjacent-monitor
Open

vitosans wants to merge 1 commit into
ubuntu:mainfrom
vitosans:pr/move-to-adjacent-monitor

Conversation

@vitosans

Copy link
Copy Markdown

Repeating the tile left/right half shortcut on a window that already fills that side of its monitor now moves it to the neighboring monitor in that direction, tiled to the opposite half. Past the last monitor it wraps around to the farthest monitor on the other side, so repeated presses cycle the window through every half of every monitor. This matches Rectangle on macOS and Win+Arrow on Windows.

  • New setting move-to-adjacent-monitor (default: off, so existing behavior is unchanged), shown as General → Multi-Monitor → Move to Adjacent Monitor on Repeat
  • Works independently of the Dynamic Keybinding Behavior setting; only the left/right half shortcuts are affected
  • With a single monitor, a repeated press is a no-op instead of untiling
  • The target tile goes through getTileFor(), so it respects tile groups and favorite layouts on the destination monitor

Tested on GNOME 51 (Wayland) with two side-by-side monitors. ESLint and codespell pass locally with the CI configuration.

Repeating the tile left/right half shortcut on a window that already
fills that side of its monitor now moves it to the neighboring monitor
in that direction, tiled to the opposite half. Past the last monitor it
wraps around to the farthest monitor on the other side, so repeated
presses cycle the window through every half of every monitor (like
Rectangle on macOS or Win+Arrow on Windows).

Controlled by the new `move-to-adjacent-monitor` setting (default off),
exposed as "Move to Adjacent Monitor on Repeat" in the General tab.
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