nix/modules/hypridle/default.nix

20 lines
422 B
Nix
Raw Normal View History

2024-08-31 14:33:03 +02:00
{...}: {
2024-08-31 14:46:41 +02:00
home-manager.users.joy.services.hypridle = {
2024-08-31 14:33:03 +02:00
# 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";
}
];
};
};
}