From 2206d4f2364263fe1bcec82a328356c3367e2365 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 7 Jul 2021 18:55:50 +0200 Subject: [PATCH] xss-lock: better comments --- bin/xss-lock | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/xss-lock b/bin/xss-lock index 39e41c8..8c63547 100755 --- a/bin/xss-lock +++ b/bin/xss-lock @@ -37,12 +37,13 @@ case "$1" in echo "lock: lock screen (idle: $(xprintidle))" # Something may have mendled with screensaver settings configure - # First, pause any music player + # Pause music player and notifications playerctl -a pause - # Then, lock screen dunstctl set-paused true + # Then, lock screen i3lock -n -e -i $HOME/.cache/i3/current-wallpaper.png -t -f - dunstctl set-paused false echo "lock: unlock screen" + # Resume notifications + dunstctl set-paused false ;; esac