From 953589075efd900105daa89c9910d45a963d0303 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 8 Aug 2024 13:39:19 +0200 Subject: [PATCH] Don't auto-pause dunst notifications (causes issues) --- home/services/hypridle.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/services/hypridle.nix b/home/services/hypridle.nix index 9c4f053..3353ec4 100644 --- a/home/services/hypridle.nix +++ b/home/services/hypridle.nix @@ -14,10 +14,9 @@ in { enable = true; settings = { general = { - lock_cmd = "hyprlock && dunstctl set-paused true"; + lock_cmd = "hyprlock"; unlock_cmd = "killall -s SIGUSR1 hyprlock && dustctl set-paused false"; before_sleep_cmd = "loginctl lock-session && dunstctl set-paused true && sleep 2"; - after_sleep_cmd = "dunstctl set-paused false"; ignore_dbus_inhibit = false; ignore_systemd_inhibit = false; }; @@ -34,7 +33,8 @@ in { # Lock the session & disable dunst notifications { timeout = 310; - on-timeout = "loginctl lock-session"; + on-timeout = "loginctl lock-session && dunstctl set-paused true"; + on-resume = "dunstctl set-paused false"; } # Turn off the screen after another 50s