mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 13:51:19 +01:00
feat(wm): padding for named workspaces
workspace-padding and container-padding take the index of a workspace's monitor and its own index, so a script that names its workspaces still has to count them to pad one, while focus-named-workspace, named-workspace-layout and named-workspace-tiling already take the name. named-workspace-padding and named-workspace-container-padding take the name instead. They look the workspace up on every monitor the way the other named commands do, set the same padding the commands by index set, and change nothing for a name no workspace has. The tests check the messages the subcommands send, that a named workspace takes its paddings and the tile in front follows, and that a name nobody has changes nothing. The commands sweep of the VM suite sends both commands to a real session.
This commit is contained in:
1 parent
189aeb1005
commit
ac265de1e3
10 files changed
+198
-15
No files matched your search
@@ -21,11 +21,18 @@ set the paddings of the focused workspace, and
|
||||
[`komorebic container-padding`](../cli/container-padding.md) those of a workspace given by the
|
||||
index of its monitor and its own, counted from 0.
|
||||
|
||||
[`komorebic named-workspace-padding`](../cli/named-workspace-padding.md) and
|
||||
[`komorebic named-workspace-container-padding`](../cli/named-workspace-container-padding.md) find
|
||||
the workspace by the [name](workspaces.md#names) it was given instead, on whichever monitor has
|
||||
it. A name no workspace has changes nothing.
|
||||
|
||||
```sh
|
||||
komorebic focused-workspace-padding 20
|
||||
komorebic focused-workspace-container-padding 10
|
||||
komorebic workspace-padding 0 1 0
|
||||
komorebic container-padding 0 1 0
|
||||
komorebic named-workspace-padding mail 0
|
||||
komorebic named-workspace-container-padding mail 0
|
||||
```
|
||||
|
||||
[`komorebic adjust-workspace-padding`](../cli/adjust-workspace-padding.md) and
|
||||
|
||||
Reference in new issue
Block a user