25 lines
503 B
Nix
25 lines
503 B
Nix
{
|
|
services.hypridle = {
|
|
enable = true;
|
|
settings = {
|
|
general = {
|
|
lock_cmd = "hyprlock";
|
|
before_sleep_cmd = "$lock_cmd";
|
|
after_sleep_cmd = "hyprctl dispatch dpms on";
|
|
};
|
|
|
|
listener = [
|
|
{
|
|
timeout = 900; # 15mins
|
|
on-timeout = "hyprlock";
|
|
}
|
|
{
|
|
timeout = 1200; # 20mins
|
|
on-timeout = "hyprctl dispatch dpms off";
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|