changeset: 1929:c3f3921f8639
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Feb 22 11:48:34 2007 -0500
summary: Removed superfluous 'NF>2' check in proglist (there's no x in total). Renamed DMENU to WMII_MENU.
diff -r 77bd3001173a -r c3f3921f8639 rc/wmiirc
--- a/rc/wmiirc Wed Feb 21 17:36:54 2007 -0500
+++ b/rc/wmiirc Thu Feb 22 11:48:34 2007 -0500
@@ -24,10 +24,10 @@ WMII_FOCUSCOLORS='#ffffff #335577 #44779
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])
Received on Thu Feb 22 2007 - 17:52:29 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:44 UTC