[hackers] [wmii] Fix wmiirc's M-a || Kris Maglione

From: <hg_AT_suckless.org>
Date: Wed, 18 Mar 2009 22:16:36 +0000 (UTC)

changeset: 2439:e93d2245fe20
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Wed Mar 18 18:16:13 2009 -0400
files: cmd/wmii.sh.sh rc/wmiirc.sh
description:
Fix wmiirc's M-a

diff -r 78df6f8ac4b9 -r e93d2245fe20 cmd/wmii.sh.sh
--- a/cmd/wmii.sh.sh Wed Mar 11 17:20:08 2009 -0400
+++ b/cmd/wmii.sh.sh Wed Mar 18 18:16:13 2009 -0400
@@ -55,7 +55,7 @@
                 for(k in d) {
                         printf "%s() {\n", k
                         printf " %s=$1; shift\n", tolower(k)
- printf "case $%s in\n%s\nesac\n", tolower(k), d[k]
+ printf "case $%s in\n%s\n*) return 1\nesac\n", tolower(k), d[k]
                         printf "}\n"
                 }
         }
diff -r 78df6f8ac4b9 -r e93d2245fe20 rc/wmiirc.sh
--- a/rc/wmiirc.sh Wed Mar 11 17:20:08 2009 -0400
+++ b/rc/wmiirc.sh Wed Mar 18 18:16:13 2009 -0400
@@ -149,7 +149,7 @@
         Key $MODKEY-m
                 wmiir xwrite /tag/sel/ctl colmode sel stack+max
         Key $MODKEY-a
- Action $(wi_actions | wimenu -h "${hist}.actions" -n $histnum) &
+ action $(wi_actions | wimenu -h "${hist}.actions" -n $histnum) &
         Key $MODKEY-p
                 eval wmiir setsid "$(wimenu -h "${hist}.progs" -n $histnum <$progsfile)" &
         Key $MODKEY-t
@@ -220,7 +220,7 @@
 
 # Setup Tag Bar
 IFS="$wi_nl"
-wmiir rm $(wmiir ls /lbar | sed 's,^,/lbar/,')
+wmiir rm $(wmiir ls /lbar | sed 's,^,/lbar/,') >/dev/null
 seltag=$(wmiir read /tag/sel/ctl | sed 1q)
 unset IFS
 wi_tags | while read tag
Received on Wed Mar 18 2009 - 22:16:36 UTC

This archive was generated by hypermail 2.2.0 : Wed Mar 18 2009 - 22:24:04 UTC