Start xscreensaver if it is not running already

This commit is contained in:
Nico Schottelius 2017-07-25 11:41:31 +02:00
parent d975b720c8
commit 7d392377bf
1 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,9 @@
# i3lock -i ~/.background.png --dpms --nofork
# try to start - if it already runs it will just exit
xscreensaver &
if ! pgrep xscreensaver; then
xscreensaver -no-splash &
sleep 1
fi
xscreensaver-command -lock