{ ... }: { services.hypridle = { enable = true; settings = { general = { after_sleep_cmd = "hyprctl dispatch dpms on"; ignore_dbus_inhibit = false; lock_cmd = "pidof hyprlock || hyprlock"; # Avoid running multiple instances of hyprlock }; listener = [ { timeout = 900; # 15 min on-timeout = "hyprlock"; } # { # timeout = 1200; # on-timeout = "hyprctl dispatch dpms off"; # on-resume = "hyprctl dispatch dpms on"; # } ]; }; }; }