33 lines
745 B
Nix
33 lines
745 B
Nix
{
|
|
enable = true;
|
|
settings = {
|
|
general = {
|
|
lock_cmd = "pidof hyprlock || hyprlock";
|
|
before_sleep_cmd = "hyprlock";
|
|
after_sleep_cmd = "hyprctl dispatch dpms on";
|
|
};
|
|
|
|
listener = [
|
|
{
|
|
timeout = 300; # 5min
|
|
on-timeout = "light -S 10";
|
|
on-resume = "brightnessctl -r";
|
|
}
|
|
{
|
|
timeout = 150; # 2.5min
|
|
on-timeout = "brightnessctl -sd rgb:kbd_backlight set 0";
|
|
on-resume = "brightnessctl -rd rgb:kbd_backlight";
|
|
}
|
|
{
|
|
timeout = 600; # 10min
|
|
on-timeout = "hyprlock";
|
|
}
|
|
{
|
|
timeout = 900; # 15min
|
|
on-timeout = "hyprctl dispatch dpms off";
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
}
|
|
];
|
|
};
|
|
}
|