21 lines
430 B
Nix
21 lines
430 B
Nix
{ ... }:
|
|
{
|
|
services.hypridle = {
|
|
enable = true;
|
|
settings = {
|
|
listener = [
|
|
{
|
|
timeout = 600;
|
|
on-timeout = "hyprctl dispatch dpms off";
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
}
|
|
{
|
|
timeout = 1200;
|
|
on-timeout = "systemctl suspend";
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|