bin/zzz: ignore missing slock

This commit is contained in:
Henrik Lissner 2016-12-17 03:10:23 -05:00
parent e7b01569c4
commit c44b17d393

View file

@ -14,8 +14,10 @@ else
case $OSTYPE in
darwin*) sleep 1; pmset displaysleepnow ;;
linux*)
if command -v slock >/dev/null; then
pgrep slock >/dev/null || slock &
sleep 3
fi
sleep 1
xset dpms force off
;;
esac