Compare commits

...

3 Commits

Author SHA1 Message Date
Simon Vedaa 3c348d13dd
Merge c8ce6fd9a9 into cc1f67c242 2024-06-21 16:54:51 +03:00
Przegryw321 cc1f67c242
Update pseudo dispatcher to feature the new argument (#687) 2024-06-19 23:19:28 +02:00
Simon Vedaa c8ce6fd9a9
Simplify keybind generation code for workspaces
Change workspace keybind generation to use keycodes instead of 
numbers. This makes the code snippet work with different layouts.
Removed redundant code.
2024-05-07 20:30:08 +02:00
2 changed files with 4 additions and 7 deletions

View File

@ -34,7 +34,7 @@ category name: `dwindle`
| dispatcher | description | params |
| --- | --- | --- |
| pseudo | toggles the focused window's pseudo mode | none |
| pseudo | toggles the given window's pseudo mode | left empty / `active` for current, or `window` for a specific window |
## Layout messages

View File

@ -137,13 +137,10 @@ module, or the flake-based Home Manager module.
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
builtins.concatLists (builtins.genList (
x: let
ws = let
c = (x + 1) / 10;
in
builtins.toString (x + 1 - (c * 10));
ws = builtins.toString (x + 10);
in [
"$mod, ${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
"$mod, code:${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, code:${ws}, movetoworkspace, ${toString (x + 1)}"
]
)
10)