From: Mark Wooding Date: Mon, 20 Apr 2020 18:28:23 +0000 (+0100) Subject: bin/wakey.zsh: Don't turn on if `WINDOWID' isn't set. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/a0611691d7204441bb20dff48f3c079c6a585bfa?ds=inline bin/wakey.zsh: Don't turn on if `WINDOWID' isn't set. It doesn't have a good chance of working, even if you've turned on `IGNORE_WINDOW_CHECK'. --- diff --git a/bin/wakey.zsh b/bin/wakey.zsh index 4d8b2e5..dd0432c 100644 --- a/bin/wakey.zsh +++ b/bin/wakey.zsh @@ -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)