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 case $OSTYPE in
darwin*) sleep 1; pmset displaysleepnow ;; darwin*) sleep 1; pmset displaysleepnow ;;
linux*) linux*)
pgrep slock >/dev/null || slock & if command -v slock >/dev/null; then
sleep 3 pgrep slock >/dev/null || slock &
fi
sleep 1
xset dpms force off xset dpms force off
;; ;;
esac esac