nix/modules/hypr/hypridle/default.nix
2024-09-01 18:56:28 +02:00

20 lines
420 B
Nix

{...}: {
home-manager.users.joy.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";
}
];
};
};
}