mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-17 17:42:38 +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
|
configure
|
||||||
# Pause music player and notifications
|
# Pause music player and notifications
|
||||||
playerctl -a pause
|
playerctl -a pause
|
||||||
|
dunstctl_state=$(dunstctl is-paused)
|
||||||
dunstctl set-paused true
|
dunstctl set-paused true
|
||||||
# Then, lock screen
|
# Then, lock screen
|
||||||
env XSECURELOCK_SAVER=$HOME/.config/i3/bin/xsecurelock-saver \
|
env XSECURELOCK_SAVER=$HOME/.config/i3/bin/xsecurelock-saver \
|
||||||
|
@ -52,6 +53,6 @@ case "$1" in
|
||||||
echo "lock: unlock screen"
|
echo "lock: unlock screen"
|
||||||
# After unlocking screen, stop dimmer, restore notifications
|
# After unlocking screen, stop dimmer, restore notifications
|
||||||
dimmer stop
|
dimmer stop
|
||||||
dunstctl set-paused false
|
dunstctl set-paused ${dunstctl_state}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue