bin/zzz: ignore missing slock
This commit is contained in:
parent
e7b01569c4
commit
c44b17d393
6
bin/zzz
6
bin/zzz
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue