mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-28 19:32:48 +01:00
feat(wm): more than one monitor
Every monitor has workspaces of its own, which KWin's per-output desktops show independently, so a second monitor is mostly the window manager's business: which monitor has the focus, and how a window gets from one to the other. At the edge of a monitor, focus and move now cross to the monitor on that side, where they used to fail with "there is no container in this direction": the focus lands on the container nearest the monitor it came from, and a move swaps with the container at that edge (cross-monitor-move-behaviour insert puts it in among the containers there, no-op keeps it). A window that opens or gets the focus on a monitor that is not the focused one focuses that monitor, which also makes the scrolling test of a strip next to another monitor guard real code. The monitor commands come with it: focusing a monitor by index, in order or under the pointer, a workspace of another monitor, moving and sending the focused window to another monitor, to a workspace of it or to a named workspace (in the window manager these are moves between monitors, so they were left out of the workspace commands), moving and swapping workspaces between monitors, and a display index preference that keeps a monitor at the index the user gives it. eager-focus focuses the first window of an executable on any workspace of any monitor; its window is found in a container or among the floating windows, the two places a window can be until stacks, monocle and maximize exist.
This commit is contained in:
1 parent
8467b03ac2
commit
189aeb1005
41 files changed
+3172
-28
No files matched your search
@@ -18,8 +18,21 @@ komorebic focus up
|
||||
komorebic focus right
|
||||
```
|
||||
|
||||
When there is no tile on that side, nothing happens, and the daemon logs "there is no container
|
||||
in this direction".
|
||||
When there is no tile on that side, the focus goes to the monitor on that side, if there is one,
|
||||
to the tile nearest the monitor the focus came from: `focus right` lands on the leftmost tile of
|
||||
the monitor on the right. With no monitor there either, nothing happens, and the daemon logs
|
||||
"there is no container or monitor in this direction".
|
||||
|
||||
[`komorebic focus-monitor`](../cli/focus-monitor.md) focuses a monitor by its index,
|
||||
[`komorebic cycle-monitor`](../cli/cycle-monitor.md) the next or the previous one, and
|
||||
[`komorebic focus-monitor-at-cursor`](../cli/focus-monitor-at-cursor.md) the one the pointer is
|
||||
on. [`komorebic eager-focus`](../cli/eager-focus.md) focuses the first window komorebi manages of
|
||||
an executable, whichever workspace of whichever monitor it is on, and shows its workspace.
|
||||
|
||||
```sh
|
||||
komorebic focus-monitor 1
|
||||
komorebic eager-focus firefox
|
||||
```
|
||||
|
||||
## In order
|
||||
|
||||
|
||||
@@ -18,8 +18,34 @@ komorebic move up
|
||||
komorebic move right
|
||||
```
|
||||
|
||||
When there is no tile on that side, nothing moves, and the daemon logs "there is no container
|
||||
in this direction".
|
||||
When there is no tile on that side, the window goes to the monitor on that side, if there is one,
|
||||
and takes the place nearest the monitor it came from. What it does there is
|
||||
[`komorebic cross-monitor-move-behaviour`](../cli/cross-monitor-move-behaviour.md): `swap`, the
|
||||
default, sends the window it takes the place of back to where it came from; `insert` puts it in
|
||||
among the windows there; `no-op` keeps it where it is.
|
||||
[`komorebic toggle-cross-monitor-move-behaviour`](../cli/toggle-cross-monitor-move-behaviour.md)
|
||||
switches between `insert` and `swap`. With no monitor on that side, nothing moves, and the daemon
|
||||
logs "there is no container or monitor in this direction".
|
||||
|
||||
## To another monitor
|
||||
|
||||
[`komorebic move-to-monitor`](../cli/move-to-monitor.md) takes the focused window to a monitor, by
|
||||
its index, and focuses it there; [`komorebic send-to-monitor`](../cli/send-to-monitor.md) does the
|
||||
same and leaves the focus on the monitor it came from. Their `cycle-` forms take the next or the
|
||||
previous monitor. [`komorebic move-to-monitor-workspace`](../cli/move-to-monitor-workspace.md) and
|
||||
[`komorebic send-to-monitor-workspace`](../cli/send-to-monitor-workspace.md) name a workspace of
|
||||
that monitor too, and [`komorebic move-to-named-workspace`](../cli/move-to-named-workspace.md) and
|
||||
[`komorebic send-to-named-workspace`](../cli/send-to-named-workspace.md) find it by its name.
|
||||
|
||||
```sh
|
||||
komorebic move-to-monitor 1
|
||||
komorebic send-to-monitor-workspace 1 2
|
||||
```
|
||||
|
||||
[`komorebic move-workspace-to-monitor`](../cli/move-workspace-to-monitor.md) takes the whole
|
||||
workspace in front to another monitor, and
|
||||
[`komorebic swap-workspaces-with-monitor`](../cli/swap-workspaces-with-monitor.md) exchanges the
|
||||
workspaces of the focused monitor with those of another.
|
||||
|
||||
## In order
|
||||
|
||||
|
||||
Reference in new issue
Block a user