nix/modules/hypridle/default.nix
2024-08-31 14:33:03 +02:00

20 lines
399 B
Nix

{...}: {
services.hypridle = {
# enable = true;
settings = {
listener = [
{
timeout = 300;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
{
timeout = 600;
on-timeout = "systemctl suspend";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
}