diff --git a/users/pedro/home-configuration/hyprland/hypridle.nix b/users/pedro/home-configuration/hyprland/hypridle.nix index a3487ab..2fe148f 100644 --- a/users/pedro/home-configuration/hyprland/hypridle.nix +++ b/users/pedro/home-configuration/hyprland/hypridle.nix @@ -1,9 +1,11 @@ -{...}: { +{ ... }: +{ services.hypridle = { enable = true; settings = { general = { lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances. + unlock_cmd = "pkill -USR1 hyprlock"; before_sleep_cmd = "loginctl lock-session"; # lock before suspend. after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display. };