~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dot/emacs: Apply Viper settings as the defaults.
[profile]
/
bin
/
wakey.sh
diff --git
a/bin/wakey.sh
b/bin/wakey.sh
index
9a05258
..
dc46b18
100644
(file)
--- a/
bin/wakey.sh
+++ b/
bin/wakey.sh
@@
-31,9
+31,11
@@
__wakey_precmd () {
case $IGNORE_WINDOW_CHECK in
t) ;;
*)
case $IGNORE_WINDOW_CHECK in
t) ;;
*)
- win=$(xprop -root _NET_ACTIVE_WINDOW | sed 's/^.*
#
//')
- if (( win == WINDOWID )); then
+ win=$(xprop -root _NET_ACTIVE_WINDOW | sed 's/^.*
[#=]
//')
+ if
[[ $win = *"not found." ]] ||
(( win == WINDOWID )); then
suppress=t
suppress=t
+ elif (( win == 0 )); then
+ :
else
for i in $(xwininfo -tree -id $win 2>/dev/null |
sed -n '/^ *[0-9]\+ child\(ren\)\?[.:]$/,$ {
else
for i in $(xwininfo -tree -id $win 2>/dev/null |
sed -n '/^ *[0-9]\+ child\(ren\)\?[.:]$/,$ {
@@
-60,7
+62,7
@@
__wakey_precmd () {
esac
}
esac
}
-case ${DISPLAY+t},${WINDOWID+t},${__mdw_precmd_hook+t},${
mdw_
_preexec_hook+t} in
+case ${DISPLAY+t},${WINDOWID+t},${__mdw_precmd_hook+t},${
__mdw
_preexec_hook+t} in
t,t,t,t)
if __mdw_programp notify-send; then
__mdw_addhook __mdw_preexec_hook __wakey_preexec
t,t,t,t)
if __mdw_programp notify-send; then
__mdw_addhook __mdw_preexec_hook __wakey_preexec