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

This commit is contained in:
lupan committed 2020-01-20 22:39:40 +01:00
1 parent f2b64bc7dc
commit f51859b705
3 files changed
+11 -4

No files matched your search

+7
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 '' &