mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-16 13:14:20 +02:00
xss-lock: better comments
This commit is contained in:
parent
fa589e3716
commit
2206d4f236
1 changed files with 4 additions and 3 deletions
|
@ -37,12 +37,13 @@ case "$1" in
|
||||||
echo "lock: lock screen (idle: $(xprintidle))"
|
echo "lock: lock screen (idle: $(xprintidle))"
|
||||||
# Something may have mendled with screensaver settings
|
# Something may have mendled with screensaver settings
|
||||||
configure
|
configure
|
||||||
# First, pause any music player
|
# Pause music player and notifications
|
||||||
playerctl -a pause
|
playerctl -a pause
|
||||||
# Then, lock screen
|
|
||||||
dunstctl set-paused true
|
dunstctl set-paused true
|
||||||
|
# Then, lock screen
|
||||||
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"
|
||||||
|
# Resume notifications
|
||||||
|
dunstctl set-paused false
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue