chiark
/
gitweb
/
~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bin/wakey.zsh: Don't turn on if `WINDOWID' isn't set.
[profile]
/
bin
/
wakey.zsh
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)