feat(registry): add repeating keybind option

This commit is contained in:
2026-10-11 14:57:32 -04:00
parent 49b7342f65
commit 1836c6c234
2 changed files with 12 additions and 1 deletions

View File

@@ -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);
};
};

View File

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