[hackers] [wmii] Fix tickets #113 and #115. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Wed, 27 May 2009 16:59:11 +0000 (UTC)

changeset: 2469:63165c426878
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Wed May 27 12:59:07 2009 -0400
files: rc/wmiirc.sh
description:
Fix tickets #113 and #115.

diff -r cb0ab85260f8 -r 63165c426878 rc/wmiirc.sh
--- a/rc/wmiirc.sh Mon May 25 15:19:55 2009 -0400
+++ b/rc/wmiirc.sh Wed May 27 12:59:07 2009 -0400
@@ -25,7 +25,7 @@
 WMII_TERM="xterm"
 
 # Menu history
-hist="$(wmiir namespace)/history"
+hist="${WMII_CONFPATH%%:*}/history"
 histnum=5000
 
 # Column Rules
@@ -153,7 +153,7 @@
         Key $MODKEY-p
                 eval wmiir setsid "$(wimenu -h "${hist}.progs" -n $histnum <$progsfile)" &
         Key $MODKEY-t
- wmiir xwrite /ctl view $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
+ (tag=$(wi_tags | wimenu -h "${hist}.tags" -n 50) && wmiir xwrite /ctl view $tag) &
         Key $MODKEY-Return
                 eval wmiir setsid $WMII_TERM &
         Key $MODKEY-Shift-space
@@ -163,7 +163,8 @@
         Key $MODKEY-Shift-c
                 wmiir xwrite /client/sel/ctl kill
         Key $MODKEY-Shift-t
- wmiir xwrite "/client/$(wi_selclient)/tags" $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
+ c=$(wi_selclient)
+ (tag=$(wi_tags | wimenu -h "${hist}.tags" -n 50) && wmiir xwrite /client/$c/tags $tag) &
         Key $MODKEY-$LEFT
                 wmiir xwrite /tag/sel/ctl select left
         Key $MODKEY-$RIGHT
@@ -186,7 +187,7 @@
                 wmiir xwrite /tag/sel/ctl send sel up
 !
         for i in 0 1 2 3 4 5 6 7 8 9; do
- cat <<'!'
+ cat <<!
         Key $MODKEY-$i
                 wmiir xwrite /ctl view "$i"
         Key $MODKEY-Shift-$i
Received on Wed May 27 2009 - 16:59:11 UTC

This archive was generated by hypermail 2.2.0 : Wed May 27 2009 - 17:00:08 UTC