added workspace binds

This commit is contained in:
kenji
2025-12-24 00:07:06 +00:00
parent 04190ab15c
commit 573231b99a
+24 -2
View File
@@ -1,6 +1,7 @@
{ {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
bindd = [ bindd =
[
# essential # essential
"SUPER, Return, Open Terminal, exec, ghostty" # FIXME: must be using xdg-open "SUPER, Return, Open Terminal, exec, ghostty" # FIXME: must be using xdg-open
"SUPER, Q, Kill active, killactive" "SUPER, Q, Kill active, killactive"
@@ -17,6 +18,27 @@
# apps # apps
"SUPER, W, Open browser, exec, firefox" # FIXME: must be xdg-open "SUPER, W, Open browser, exec, firefox" # FIXME: must be xdg-open
];
# [Workspaces] Toggle between most recent workspaces
"SUPER, Tab, Cycle workspaces, workspace, previous"
]
++ (
# Generate binds for Super + [1-10] to switch workspaces
# and Super + Shift + [1-10] to move window to workspace
builtins.concatLists (builtins.genList (
i: let
ws = i + 1;
key = toString (
if ws == 10
then 0
else ws
);
in [
"SUPER, ${key}, Switch to workspace ${toString ws}, workspace, ${toString ws}"
"SUPER SHIFT, ${key}, Move window to workspace ${toString ws}, movetoworkspace, ${toString ws}"
]
)
10)
);
}; };
} }