YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
2.82k stars 79 forks source link

Added Commnads to focus windows or Monitors above/below the active window #497

Closed TheAngusMcFire closed 14 hours ago

TheAngusMcFire commented 3 days ago

I use a multi monitor setup with monitors on top of each other, so I added commands to move up/down or switch to the next monitor. I used the existing FocusColumnOrMonitorLeft/Right commands as Inspiration.

YaLTeR commented 3 days ago

Wouldn't it make more sense for it to be focus-window-or-workspace-or-monitor-down that also goes through workspaces?

TheAngusMcFire commented 3 days ago

The idea is to naturally navigate through the available screen space. e.g. I am on my main monitor and want to switch to my upper monitor which just runs netflix I just go up without thinking which workspace. If I would use something like focus-window-or-workspace-or-monitor-down on the 4 the workspace on my main monitor, I would need to move through 4 workspaces before I would get on the upper monitor.

Niri already implements:

FocusColumnOrMonitorLeft,
FocusColumnOrMonitorRight,

so I figured I just add the same behavior for Monitors above and below the main monitor.

YaLTeR commented 3 days ago

The idea is to naturally navigate through the available screen space. e.g. I am on my main monitor and want to switch to my upper monitor which just runs netflix I just go up without thinking which workspace.

Right, I see, that makes sense.

lpnh commented 3 days ago

Address https://github.com/YaLTeR/niri/discussions/296#discussioncomment-9174614

YaLTeR commented 14 hours ago

Thanks!