From 7261fe0b59129f6bb4d47ba26115685853d81205 Mon Sep 17 00:00:00 2001 From: Armiel <125122987+Abscissa24@users.noreply.github.com> Date: Thu, 14 May 2026 23:12:50 +0200 Subject: [PATCH] Fix: lock system before suspending via inhibit_sleep Previously, the system suspended before locking, briefly exposing the desktop upon waking. Adding inhibit_sleep ensures the system locks immediately when the lid is closed, before suspending. --- .config/hypr/hypridle.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf index 1fc0f84..492ca2b 100644 --- a/.config/hypr/hypridle.conf +++ b/.config/hypr/hypridle.conf @@ -20,6 +20,7 @@ general { lock_cmd = quickshell -p ~/.config/hypr/scripts/quickshell/Lock.qml before_sleep_cmd = loginctl lock-session after_sleep_cmd = hyprctl dispatch dpms on + inhibit_sleep = 3 } listener {