feat(hyprland): add workspace window movement binds

This commit is contained in:
2026-10-11 14:43:56 -04:00
parent 40a3f6b1cc
commit 7ee2f966b3

View File

@@ -31,16 +31,34 @@ in
registry.keybind.${config.networking.hostName} = lib.mkMerge [
# Generate numeric workspace keybinds.
(lib.listToAttrs (
map (workspace: {
name = "hyprland-workspace-${toString workspace}";
value = {
keys = "SUPER + ${toString workspace}";
action = {
kind = "focus";
inherit workspace;
};
};
}) (lib.range 1 9)
lib.concatMap (
workspace:
let
workspaceText = toString workspace;
in
[
{
name = "hyprland-workspace-${workspaceText}";
value = {
keys = "SUPER + ${workspaceText}";
action = {
kind = "focus";
inherit workspace;
};
};
}
{
name = "hyprland-move-to-workspace-${workspaceText}";
value = {
keys = "SUPER + Shift + ${workspaceText}";
action = {
kind = "move-window";
inherit workspace;
};
};
}
]
) (lib.range 1 9)
))
# Generate directional keybinds.
(lib.listToAttrs (