chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3b3bb4
)
bin/wakey.zsh: Don't turn on if `WINDOWID' isn't set.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 20 Apr 2020 18:28:23 +0000
(19:28 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/bin/wakey.zsh
b/bin/wakey.zsh
index 4d8b2e5fb08a5bce16eee7208156874a102029f8..dd0432c7e2132a3eb6b27ff0817d46d35b7e41b6 100644
(file)
--- 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)