bin/wakey.zsh: Don't turn on if `WINDOWID' isn't set.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 20 Apr 2020 18:28:23 +0000 (19:28 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 20 Apr 2020 18:28:23 +0000 (19:28 +0100)
It doesn't have a good chance of working, even if you've turned on
`IGNORE_WINDOW_CHECK'.

bin/wakey.zsh

index 4d8b2e5..dd0432c 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)