From 69ef245273d5ebeebc4651b54b6d35e66ac0c99e Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sat, 3 May 2025 10:38:12 -0400 Subject: [PATCH] Add some delays to hypridle / hyprlock launch so blur gets applied --- README.org | 6 +++--- hypridle.conf | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index d6c7985..98b33d8 100644 --- a/README.org +++ b/README.org @@ -740,9 +740,9 @@ screencopy { #+BEGIN_SRC conf :tangle hypridle.conf general { - lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances - before_sleep_cmd = loginctl lock-session # lock before suspend - after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key to turn on the display + lock_cmd = pgrep hyprlock || (hyprlock && sleep 3) # avoid starting multiple hyprlock instances + before_sleep_cmd = loginctl lock-session && sleep 3 # lock before suspend + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key to turn on the display ignore_dbus_inhibit = false ignore_systemd_inhibit = false inhibit_sleep = 2 diff --git a/hypridle.conf b/hypridle.conf index ee96dd3..93ecf69 100644 --- a/hypridle.conf +++ b/hypridle.conf @@ -1,7 +1,7 @@ general { - lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances - before_sleep_cmd = loginctl lock-session # lock before suspend - after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key to turn on the display + lock_cmd = pgrep hyprlock || (hyprlock && sleep 3) # avoid starting multiple hyprlock instances + before_sleep_cmd = loginctl lock-session && sleep 3 # lock before suspend + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key to turn on the display ignore_dbus_inhibit = false ignore_systemd_inhibit = false inhibit_sleep = 2