refactor(hyprland): rename keybind action kind

This commit is contained in:
2026-10-10 14:27:52 -04:00
parent 2f9955dfb8
commit a84aa68274
2 changed files with 13 additions and 13 deletions

View File

@@ -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

View File

@@ -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"