commit 924972e625ec2bb7c3951dfea6192e7287dee8cb
parent caa1e081a1883de1b616e88d293f2f8aa31156c1
Author: Kris Maglione <jg@suckless.org>
Date: Thu, 22 Feb 2007 11:48:34 -0500
Removed superfluous 'NF>2' check in proglist (there's no x in total). Renamed DMENU to WMII_MENU.
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/rc/wmiirc b/rc/wmiirc
@@ -24,10 +24,10 @@ WMII_NORMCOLORS='#222222 #eeeeee #666666'
WMII_FOCUSCOLORS='#ffffff #335577 #447799'
WMII_BACKGROUND='#333333'
-DMENU="dmenu -b -fn $WMII_FONT -nb #eeeeee -nf #222222 -sb #335577 -sf #ffffff"
+WMII_MENU="dmenu -b -fn $WMII_FONT -nb #eeeeee -nf #222222 -sb #335577 -sf #ffffff"
WMII_TERM="xterm"
-export DMENU WMII_FONT WMII_FOCUSCOLORS WMII_SELCOLORS WMII_NORMCOLORS WMII_TERM
+export WMII_MENU WMII_FONT WMII_FOCUSCOLORS WMII_SELCOLORS WMII_NORMCOLORS WMII_TERM
# WM CONFIGURATION
wmiir write /ctl << EOF
@@ -54,7 +54,7 @@ EOF
# FUNCTIONS
proglist() {
- ls -lL "$@" 2>/dev/null | awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq
+ ls -lL "$@" 2>/dev/null | awk '$1 ~ /^[^d].*x/ {print $NF}' | sort | uniq
}
conf_which () {
@@ -66,7 +66,7 @@ conf_which () {
tagsmenu() {
tag=`wmiir read /tag/sel/ctl`
- wmiir ls /tag | sed "s|/||; /^sel\$/d" | $DMENU
+ wmiir ls /tag | sed "s|/||; /^sel\$/d" | $WMII_MENU
}
# MISC
@@ -199,9 +199,9 @@ do
$MODKEY-m)
wmiir xwrite /tag/sel/ctl colmode sel max;;
$MODKEY-a)
- `conf_which "$(proglist $ACTIONS_DIRS | $DMENU)"` &;;
+ `conf_which "$(proglist $ACTIONS_DIRS | $WMII_MENU)"` &;;
$MODKEY-p)
- sh -c "`$DMENU <$PROGS_FILE`" &;;
+ sh -c "`$WMII_MENU <$PROGS_FILE`" &;;
$MODKEY-t)
wmiir xwrite /ctl "view `tagsmenu`" &;;
$MODKEY-[0-9])