mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
nix: add general:grace
This commit is contained in:
parent
9dea7c2f55
commit
3b7e055dcf
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,11 @@ in {
|
||||||
type = bool;
|
type = bool;
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
|
grace = mkOption {
|
||||||
|
description = "Seconds to wait for user input before locking";
|
||||||
|
type = int;
|
||||||
|
default = 0;
|
||||||
|
};
|
||||||
hide_cursor = mkOption {
|
hide_cursor = mkOption {
|
||||||
description = "Hides the cursor instead of making it visible";
|
description = "Hides the cursor instead of making it visible";
|
||||||
type = bool;
|
type = bool;
|
||||||
|
@ -249,6 +254,7 @@ in {
|
||||||
xdg.configFile."hypr/hyprlock.conf".text = ''
|
xdg.configFile."hypr/hyprlock.conf".text = ''
|
||||||
general {
|
general {
|
||||||
disable_loading_bar = ${boolToString cfg.general.disable_loading_bar}
|
disable_loading_bar = ${boolToString cfg.general.disable_loading_bar}
|
||||||
|
grace = ${toString cfg.general.grace}
|
||||||
hide_cursor = ${boolToString cfg.general.hide_cursor}
|
hide_cursor = ${boolToString cfg.general.hide_cursor}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue