From 28b9e1ff750f7ec4a228480c5fbeb46d04217afe Mon Sep 17 00:00:00 2001 From: Denis Grelich Date: Mon, 18 Dec 2006 11:50:18 +0100 Subject: [PATCH] partially applied Stefan Tibus' 11_wmii-3.5-sti.patch, which cleans up the wmiirc a bit --- rc/wmiirc | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/rc/wmiirc b/rc/wmiirc index caf14309..7b624c6f 100644 --- a/rc/wmiirc +++ b/rc/wmiirc @@ -15,23 +15,31 @@ conf_which () { echo `PATH="$WMII_CONFPATH:$PATH" which $prog` "$@" } +tagsmenu() { + tag=`ixpc read /tag/sel/ctl` + tags=`ixpc ls /tag | sed 's,/,,; /^sel$/d' | awk "BEGIN{print \"$tag\"} !/^$tag\$/" | $DMENU` + test -n "$tags" && xwrite $@ "$tags" +} + MODKEY=Mod1 UP=k DOWN=j LEFT=h RIGHT=l -DMENU='dmenu -font fixed -normbg #eeeeee -normfg #222222 -selbg #335577 -selfg #ffffff' WMII_FONT='-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*' +# colors are text, bg, border WMII_NORMCOLORS='#222222 #eeeeee #666666' WMII_SELCOLORS='#ffffff #335577 #447799' -# dark background -#WMII_NORMCOLORS='#eeeeee #111111 #222222' +WMII_BACKGROUND='#333333' -export DMENU WMII_FONT WMII_SELCOLORS WMII_NORMCOLORS +DMENU='dmenu -font fixed -normbg #eeeeee -normfg #222222 -selbg #335577 -selfg #ffffff' +WMII_TERM="xterm" -# stop any running instances or ixpcc -echo Start ixpcc | ixpc write /event || exit 1 +export DMENU WMII_FONT WMII_SELCOLORS WMII_NORMCOLORS WMII_TERM + +# stop any running instances of wmiirc +echo Start wmiirc | ixpc write /event || exit 1 # WM CONFIGURATION ixpc write /ctl << EOF @@ -57,7 +65,7 @@ ixpc write /tagrules <