From bb0e68d1aa4818408dd142cd941696452a530302 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Mon, 5 Jan 2026 14:56:37 +0100 Subject: [PATCH] hypridle: add unlock_cmd --- users/pedro/home-configuration/hyprland/hypridle.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. };