feat(registry): add repeating keybind option
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
name = "hyprland-resize-${direction}";
|
||||
value = {
|
||||
keys = "SUPER + ALT + ${key}";
|
||||
repeating = true;
|
||||
action = {
|
||||
kind = "resize-window";
|
||||
inherit direction;
|
||||
@@ -162,7 +163,10 @@
|
||||
}
|
||||
.${keybind.action.kind}
|
||||
))
|
||||
];
|
||||
]
|
||||
++ lib.optional keybind.repeating {
|
||||
repeating = true;
|
||||
};
|
||||
}) (lib.attrByPath [ config.networking.hostName ] { } config.registry.keybind);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -36,6 +36,13 @@
|
||||
example = "SUPER + Return";
|
||||
};
|
||||
|
||||
repeating = lib.mkOption {
|
||||
description = "Repeats the keybind action while the key chord is held.";
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
action = lib.mkOption {
|
||||
description = "Declares the action this keybind runs.";
|
||||
type = lib.types.submodule {
|
||||
|
||||
Reference in New Issue
Block a user