use xss-lock to lock the screen on suspend/hibernate

This commit is contained in:
2020-01-20 22:39:40 +01:00
parent f2b64bc7dc
commit f51859b705
3 changed files with 11 additions and 4 deletions

View File

@ -10,6 +10,13 @@ xsetroot -solid '#424242'
xrdb -merge ~/.Xresources
setxkbmap pl -option ctrl:nocaps
# lock screen on suspend/hibernate
if which xss-lock slock >/dev/null; then
xss-lock slock &
else
( echo "Missing command(s):"; which xss-lock slock 2>&1 ) | xmessage -file -
fi
# run emacs daemon if not running
emacsclient --eval nil -a '' &