bin/zzz: ignore missing slock
This commit is contained in:
parent
e7b01569c4
commit
c44b17d393
4
bin/zzz
4
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*)
|
||||||
|
if command -v slock >/dev/null; then
|
||||||
pgrep slock >/dev/null || slock &
|
pgrep slock >/dev/null || slock &
|
||||||
sleep 3
|
fi
|
||||||
|
sleep 1
|
||||||
xset dpms force off
|
xset dpms force off
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue