feat(wm): lock

Containers can be locked since the model came in, and a locked container keeps
its index while others are inserted, removed or swapped around it; nothing could
lock one. `komorebic toggle-lock` locks the focused container, or unlocks it,
and the `LockMonitorWorkspaceContainer` and `UnlockMonitorWorkspaceContainer`
messages lock and unlock a container by the index of its monitor, its workspace
and itself, for a program such as a status bar.

The vm-commands sweep locks and unlocks a container.
This commit is contained in:
LGUG2Z committed 2026-10-28 07:20:37 -07:00
1 parent 062fe57fac
commit 3cc5dceb7d
11 files changed
+325 -6

No files matched your search

+2 -2
View File
@@ -140,8 +140,8 @@ another layout, `layout-ratios` and `scrolling-layout-columns` tune it,
`toggle-tiling` stops it moving windows and starts it again,
`preselect-direction` reserves a tile for the next window, `resize-edge` and
`resize-axis` move the edges of the focused tile, `promote` brings the
focused window to the largest tile, and `toggle-float` takes it out of the
layout. The scrolling layout
focused window to the largest tile, `toggle-float` takes it out of the
layout, and `toggle-lock` keeps its container at its place. The scrolling layout
is a strip of columns that runs past the edges of the monitor and scrolls to
the window that has the focus.