diff --git a/configs/nixos/modules/desktop/session/hyprland/default.nix b/configs/nixos/modules/desktop/session/hyprland/default.nix index 14bb2da..af15bcf 100644 --- a/configs/nixos/modules/desktop/session/hyprland/default.nix +++ b/configs/nixos/modules/desktop/session/hyprland/default.nix @@ -17,7 +17,7 @@ let key ]; action = { - type = "focus"; + kind = "focus"; inherit direction; }; }; @@ -31,7 +31,7 @@ let key ]; action = { - type = "move-window"; + kind = "move-window"; inherit direction; }; }; @@ -57,7 +57,7 @@ let key ]; action = { - type = "resize-window"; + kind = "resize-window"; inherit (delta) x y; }; }; @@ -101,7 +101,7 @@ let workspaceName ]; action = { - type = "focus-workspace"; + kind = "focus-workspace"; inherit workspace; }; }; @@ -115,7 +115,7 @@ let workspaceName ]; action = { - type = "move-to-workspace"; + kind = "move-to-workspace"; inherit workspace; }; }; @@ -152,7 +152,7 @@ let "focus-workspace" = "hl.dsp.focus(${toLua { inherit (action) workspace; }})"; "move-to-workspace" = "hl.dsp.window.move(${toLua { inherit (action) workspace; }})"; } - .${action.type} + .${action.kind} ); keybinds = lib.attrValues ( @@ -172,7 +172,7 @@ in "Return" ]; action = { - type = "exec"; + kind = "exec"; command = "ghostty"; }; }; @@ -182,7 +182,7 @@ in "SUPER" "Space" ]; - action.type = "toggle-floating"; + action.kind = "toggle-floating"; }; hyprland-fullscreen = { @@ -190,7 +190,7 @@ in "SUPER" "F" ]; - action.type = "fullscreen"; + action.kind = "fullscreen"; }; hyprland-toggle-split = { @@ -199,7 +199,7 @@ in "T" ]; action = { - type = "layout"; + kind = "layout"; message = "togglesplit"; }; }; @@ -210,7 +210,7 @@ in "SHIFT" "Q" ]; - action.type = "close-window"; + action.kind = "close-window"; }; hyprland-kill-window = { @@ -219,7 +219,7 @@ in "CTRL" "Q" ]; - action.type = "kill-window"; + action.kind = "kill-window"; }; } // directionalKeybinds diff --git a/configs/nixos/registry/desktop-keybind.nix b/configs/nixos/registry/desktop-keybind.nix index f24379a..c5d5cdc 100644 --- a/configs/nixos/registry/desktop-keybind.nix +++ b/configs/nixos/registry/desktop-keybind.nix @@ -22,7 +22,7 @@ type = lib.types.submodule { freeformType = lib.types.attrsOf lib.types.anything; - options.type = lib.mkOption { + options.kind = lib.mkOption { type = lib.types.enum [ "exec" "focus"