diff --git a/bin/zzz b/bin/zzz index 67be51d2..a7ca4a7d 100755 --- a/bin/zzz +++ b/bin/zzz @@ -14,8 +14,10 @@ else case $OSTYPE in darwin*) sleep 1; pmset displaysleepnow ;; linux*) - pgrep slock >/dev/null || slock & - sleep 3 + if command -v slock >/dev/null; then + pgrep slock >/dev/null || slock & + fi + sleep 1 xset dpms force off ;; esac