diff --git a/cmd/wm/wm.c b/cmd/wm/wm.c index ceb59edb..37a970cf 100644 --- a/cmd/wm/wm.c +++ b/cmd/wm/wm.c @@ -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; diff --git a/rc/status b/rc/status index 515e4190..adbd26d1 100644 --- a/rc/status +++ b/rc/status @@ -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 diff --git a/rc/wmiirc b/rc/wmiirc index 78e8ab47..20ce6ad4 100644 --- a/rc/wmiirc +++ b/rc/wmiirc @@ -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