Files
nix-config/users/jordan/common/optional/graphical/hyprland/hypridle.nix
Jordan Holt 2b11c3f256
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m0s
users/jordan: make graphical config optional
2025-04-28 21:07:12 +01:00

29 lines
494 B
Nix

{
...
}:
{
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = 900;
on-timeout = "hyprlock";
}
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
}