chiark / gitweb /
bin/wakey.zsh: Don't turn on if `WINDOWID' isn't set.
[profile] / bin / wakey.zsh
index 4d8b2e5fb08a5bce16eee7208156874a102029f8..dd0432c7e2132a3eb6b27ff0817d46d35b7e41b6 100644 (file)
@@ -64,8 +64,8 @@ __wakey_precmd () {
   esac
 }
 
-case ${DISPLAY-nil} in
-  nil) ;;
+case ${DISPLAY-nil},${WINDOWID-nil} in
+  nil,* | *,nil) ;;
   *)
     if whence notify-send >/dev/null 2>&1; then
       preexec_functions+=(__wakey_preexec)