small fix

This commit is contained in:
Georg Neis 2006-03-01 18:30:20 +02:00
parent 7b5978c34b
commit 5ae71d5cbc
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ xwrite() {
# race condition alert
test -f $pidfile && kill `cat $pidfile` 2>/dev/null
echo $$ >$pidfile
sleep 2
sleep 1
xwrite /bar/new/colors $WMII_NORMCOLORS
n=`wmiir read /bar | awk '/[0-9]+$/ {if($NF>max) max=$NF} END {print max}'`
trap "wmiir remove /bar/$n 2>/dev/null; exit" 15

View File

@ -35,7 +35,7 @@ xwrite /def/selcolors $WMII_SELCOLORS
xwrite /def/normcolors $WMII_NORMCOLORS
# BAR CONFIGURATION
while wmiir remove /bar/1 2>/dev/null
while wmiir remove /bar/0 2>/dev/null
do
:
done
@ -57,7 +57,7 @@ done <<EOF
$MODKEY-Control-c
$MODKEY-Control-w,y
$MODKEY-Control-q,y
$MODKEY-Control-r,y
$MODKEY-Control-r
$MODKEY-Control-p
$MODKEY-Control-a
$MODKEY-Control-y
@ -123,7 +123,7 @@ do
wmiirc &;;
$MODKEY-Control-q,y)
xwrite /ctl quit;;
$MODKEY-Control-r,y)
$MODKEY-Control-r)
wmiir remove /sel;;
$MODKEY-Control-p)
extern `wmiimenu </tmp/ns.$USER.$DISPLAY/progs` &;;