Fixed drawing of the bar background. Fixed use of wmiir create in line with prev. commit.

This commit is contained in:
Kris Maglione 2006-06-23 03:44:59 -04:00
parent 2f7674d31a
commit 9ada8edddc
3 changed files with 7 additions and 6 deletions

View File

@ -338,6 +338,8 @@ main(int argc, char *argv[])
bbrush.drawable = XCreatePixmap(blz.display, barwin, brect.width, brect.height,
DefaultDepth(blz.display, blz.screen));
bbrush.rect = brect;
bbrush.rect.x = 0;
bbrush.rect.y = 0;
bbrush.color = def.normcolor;
bbrush.font = &def.font;

View File

@ -7,7 +7,7 @@ xwrite() {
}
wmiir remove /rbar/status 2>/dev/null && sleep 2
wmiir create /rbar/status
echo $WMII_SELCOLORS | wmiir create /rbar/status
while xwrite /rbar/status "$WMII_NORMCOLORS" `date` `uptime | sed 's/.*://; s/,//g'`
do
sleep 1

View File

@ -141,17 +141,16 @@ do
exit
fi;;
CreateTag)
wmiir create /lbar/$1
xwrite /lbar/$1 $WMII_NORMCOLORS $1
echo "/lbar/$@" $WMII_NORMCOLORS $@ | wmiir create /lbar/$1
;;
DestroyTag)
wmiir remove /lbar/$1
wmiir remove "/lbar/$@"
;;
FocusTag)
xwrite /lbar/$1 $WMII_SELCOLORS $1
xwrite "/lbar/$@" $WMII_SELCOLORS $@
;;
UnfocusTag)
xwrite /lbar/$1 $WMII_NORMCOLORS $1
xwrite "/lbar/$@" $WMII_NORMCOLORS $@
;;
LeftBarClick)
shift