nix/home/hypridle/default.nix
2024-08-11 08:45:09 +02:00

26 lines
526 B
Nix

{ ... }:
{
services.hypridle = {
enable = true;
settings = {
general = [
{
ignore_dbus_inhibit = false;
}
];
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";
}
];
};
};
}