mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-27 14:24:56 +02:00
xss-lock: pause notifications when screen is locked
This commit is contained in:
parent
d215c151a9
commit
fa589e3716
1 changed files with 2 additions and 0 deletions
|
@ -40,7 +40,9 @@ case "$1" in
|
||||||
# First, pause any music player
|
# First, pause any music player
|
||||||
playerctl -a pause
|
playerctl -a pause
|
||||||
# Then, lock screen
|
# Then, lock screen
|
||||||
|
dunstctl set-paused true
|
||||||
i3lock -n -e -i $HOME/.cache/i3/current-wallpaper.png -t -f
|
i3lock -n -e -i $HOME/.cache/i3/current-wallpaper.png -t -f
|
||||||
|
dunstctl set-paused false
|
||||||
echo "lock: unlock screen"
|
echo "lock: unlock screen"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue