mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 03:08:34 +02:00
xss-lock: add some debug to understand while it may fail recently
This commit is contained in:
parent
4323f18c39
commit
15a1063460
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ case "$1" in
|
||||||
exec xss-lock --session=${XDG_SESSION_ID} --notifier="$me notify" --transfer-sleep-lock "$me" lock
|
exec xss-lock --session=${XDG_SESSION_ID} --notifier="$me notify" --transfer-sleep-lock "$me" lock
|
||||||
;;
|
;;
|
||||||
dim|notify)
|
dim|notify)
|
||||||
echo "notify: start"
|
echo "notify: start (idle: $(xprintidle))"
|
||||||
systemctl --user kill -s STOP redshift@${display}.service
|
systemctl --user kill -s STOP redshift@${display}.service
|
||||||
trap "systemctl --user kill -s CONT redshift@${display}.service" EXIT
|
trap "systemctl --user kill -s CONT redshift@${display}.service" EXIT
|
||||||
trap 'echo notify: user activity; kill %% 2> /dev/null; exit 0' HUP # user activity
|
trap 'echo notify: user activity; kill %% 2> /dev/null; exit 0' HUP # user activity
|
||||||
|
@ -34,12 +34,12 @@ case "$1" in
|
||||||
echo "notify: end"
|
echo "notify: end"
|
||||||
;;
|
;;
|
||||||
lock)
|
lock)
|
||||||
|
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
|
# First, pause any music player
|
||||||
playerctl -a pause
|
playerctl -a pause
|
||||||
# Then, lock screen
|
# Then, lock screen
|
||||||
echo "lock: lock screen"
|
|
||||||
systemctl --user stop compton@${display}.service
|
systemctl --user stop compton@${display}.service
|
||||||
i3lock -n -e -i $HOME/.cache/awesome/current-wallpaper-${display}.png -t -f
|
i3lock -n -e -i $HOME/.cache/awesome/current-wallpaper-${display}.png -t -f
|
||||||
systemctl --user start compton@${display}.service
|
systemctl --user start compton@${display}.service
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue