xss-lock: kill compton before locking

This way, we work around many many bugs.
This commit is contained in:
Vincent Bernat 2020-01-17 09:54:55 +01:00
parent 5ab1f901dd
commit cb8b1e5434

View file

@ -35,7 +35,9 @@ case "$1" in
xdotool key XF86AudioStop
# Then, lock screen
echo "$(date --rfc-3339=seconds) $me: lock: lock screen"
pkill compton
i3lock -n -e -i $HOME/.cache/awesome/current-wallpaper.png -t -f
compton --backend glx --xrender-sync --xrender-sync-fence --vsync opengl-swc --paint-on-overlay &
echo "$(date --rfc-3339=seconds) $me: lock: unlock screen"
;;
esac