refactor(hyprland): add keybind action shape
This commit is contained in:
@@ -8,9 +8,14 @@ let
|
||||
mkBind = keybind: {
|
||||
_args = [
|
||||
keybind.keys
|
||||
(lib.generators.mkLuaInline "hl.dsp.exec_cmd(${toLua keybind.command})")
|
||||
(mkAction keybind.action)
|
||||
];
|
||||
};
|
||||
|
||||
mkAction =
|
||||
action:
|
||||
lib.generators.mkLuaInline ({ exec = "hl.dsp.exec_cmd(${toLua action.command})"; }.${action.kind});
|
||||
|
||||
keybinds = lib.attrValues (
|
||||
lib.attrByPath [ config.networking.hostName ] { } config.registry.keybind
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user