refactor(hyprland): order workspace keybinds first

This commit is contained in:
2026-10-11 12:31:01 -04:00
parent 8a25d4bbe3
commit faf1c6e4f3

View File

@@ -9,6 +9,18 @@
config = lib.mkIf config.modules.desktop.session.hyprland.enable { config = lib.mkIf config.modules.desktop.session.hyprland.enable {
registry.keybind.${config.networking.hostName} = lib.mkMerge [ registry.keybind.${config.networking.hostName} = lib.mkMerge [
(lib.listToAttrs (
map (workspace: {
name = "hyprland-workspace-${toString workspace}";
value = {
keys = "SUPER + ${toString workspace}";
action = {
kind = "focus";
inherit workspace;
};
};
}) (lib.range 1 9)
))
{ {
hyprland-focus-left = { hyprland-focus-left = {
keys = "SUPER + H"; keys = "SUPER + H";
@@ -42,18 +54,6 @@
}; };
}; };
} }
(lib.listToAttrs (
map (workspace: {
name = "hyprland-workspace-${toString workspace}";
value = {
keys = "SUPER + ${toString workspace}";
action = {
kind = "focus";
inherit workspace;
};
};
}) (lib.range 1 9)
))
]; ];
# This program integration owns the session, portals, and polkit, launched # This program integration owns the session, portals, and polkit, launched