From 1459137147868d35df8654f85512e3deb6f58f6b Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 6 Oct 2022 11:44:00 +0200 Subject: [PATCH] xss-lock: do not unpause dunstctl if it was paused --- bin/xss-lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/xss-lock b/bin/xss-lock index c3e7390..add4cd6 100755 --- a/bin/xss-lock +++ b/bin/xss-lock @@ -32,6 +32,7 @@ case "$1" in configure # Pause music player and notifications playerctl -a pause + dunstctl_state=$(dunstctl is-paused) dunstctl set-paused true # Then, lock screen env XSECURELOCK_SAVER=$HOME/.config/i3/bin/xsecurelock-saver \ @@ -52,6 +53,6 @@ case "$1" in echo "lock: unlock screen" # After unlocking screen, stop dimmer, restore notifications dimmer stop - dunstctl set-paused false + dunstctl set-paused ${dunstctl_state} ;; esac