add(hyprland): workspace-toggle

workspace-toggle force workspace toggle between special and nonspecial;
improve user intuitive action.
This commit is contained in:
kenji
2026-05-07 11:34:56 -05:00
parent f76b350d94
commit 1c1ba8b776
3 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -68,14 +68,14 @@
"SUPER, E, Toggle Workspace Overview, overview:toggle"
]
++ (
# Generate binds for Super + [1-5] to switch workspaces on current monitor
# Generate binds for Super + [1-5] to switch workspaces with special workspace toggle support
# and Super + Shift + [1-5] to move window to workspace on current monitor
builtins.concatLists (builtins.genList (
i: let
ws = i + 1;
key = toString ws;
in [
"SUPER, ${key}, Switch to workspace ${toString ws}, split:workspace, ${toString ws}"
"SUPER, ${key}, Switch to workspace ${toString ws}, exec, workspace-toggle ${toString ws}"
"SUPER SHIFT, ${key}, Move window to workspace ${toString ws}, split:movetoworkspace, ${toString ws}"
]
)