chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1bea7f5
)
bin/wakey.zsh: Use `xwininfo -tree' like I should have done from the start.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 21 Apr 2020 11:59:53 +0000
(12:59 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 21 Apr 2020 11:59:53 +0000
(12:59 +0100)
I even commented in the commit message that I should have scanned
recursively; I just didn't spot that `xwininfo' would do all of the
heavy lifting for me.
bin/wakey.zsh
patch
|
blob
|
blame
|
history
diff --git
a/bin/wakey.zsh
b/bin/wakey.zsh
index 6a848ca69d88aac50c1c81603149fa2f0edd5e51..34048c00fb83bc191f82e778fe7dc8f0015d70c6 100644
(file)
--- a/
bin/wakey.zsh
+++ b/
bin/wakey.zsh
@@
-36,7
+36,7
@@
__wakey_precmd () {
if (( win == WINDOWID )); then
suppress=t
else
- for i in $(xwininfo -
children
-id $win |
+ for i in $(xwininfo -
tree
-id $win |
sed -n '/^ *[0-9]\+ child\(ren\)\?[.:]$/,$ {
/^ *\(0x[0-9a-f]\+\) (.*$/s//\1/p
}')