From faf1c6e4f3ac4dc23cb5aa9f38572c325fcae652 Mon Sep 17 00:00:00 2001 From: alexion Date: Sun, 11 Oct 2026 12:31:01 -0400 Subject: [PATCH] refactor(hyprland): order workspace keybinds first --- .../desktop/session/hyprland/default.nix | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/configs/nixos/modules/desktop/session/hyprland/default.nix b/configs/nixos/modules/desktop/session/hyprland/default.nix index ad18375..51a1ff3 100644 --- a/configs/nixos/modules/desktop/session/hyprland/default.nix +++ b/configs/nixos/modules/desktop/session/hyprland/default.nix @@ -9,6 +9,18 @@ config = lib.mkIf config.modules.desktop.session.hyprland.enable { 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 = { 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