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:
bd78f39
)
bin/wakey.sh: Cope if the `_NET_ACTIVE_WINDOW' property is missing.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 17 May 2020 21:24:48 +0000
(22:24 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 17 May 2020 21:24:48 +0000
(22:24 +0100)
bin/wakey.sh
patch
|
blob
|
blame
|
history
diff --git
a/bin/wakey.sh
b/bin/wakey.sh
index c11aef5659e522d430de2d058cf8a74d19ca9c40..469b3cfb1046392e92646937089644f795347935 100644
(file)
--- a/
bin/wakey.sh
+++ b/
bin/wakey.sh
@@
-32,7
+32,7
@@
__wakey_precmd () {
t) ;;
*)
win=$(xprop -root _NET_ACTIVE_WINDOW | sed 's/^.*# //')
- if (( win == WINDOWID )); then
+ if
[[ $win = *"not found." ]] ||
(( win == WINDOWID )); then
suppress=t
else
for i in $(xwininfo -tree -id $win 2>/dev/null |