mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-16 13:14:20 +02:00
xss-lock: do not unpause dunstctl if it was paused
This commit is contained in:
parent
8b25dd3c77
commit
1459137147
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue