bin/mdw-build: Allow overriding the `make' program.
[profile] / bin / wakey.sh
index 6f008a9..c11aef5 100644 (file)
@@ -35,7 +35,7 @@ __wakey_precmd () {
            if (( win == WINDOWID )); then
              suppress=t
            else
-             for i in $(xwininfo -tree -id $win |
+             for i in $(xwininfo -tree -id $win 2>/dev/null |
                              sed -n '/^ *[0-9]\+ child\(ren\)\?[.:]$/,$ {
                                /^ *\(0x[0-9a-f]\+\) (.*$/s//\1/p
                              }')
@@ -60,10 +60,9 @@ __wakey_precmd () {
   esac
 }
 
-case ${DISPLAY+t},${WINDOWID+t},${__mdw_precmd_hook+t},${mdw__preexec_hook+t} in
-  t,t,t,t) ;;
-  *)
-    if __mdw_programp notify-send ; then
+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
       __mdw_addhook __mdw_precmd_hook __wakey_precmd
     fi