mirror of
https://github.com/0intro/wmii
synced 2025-02-23 01:34:16 +03:00
Fixed drawing of the bar background. Fixed use of wmiir create in line with prev. commit.
This commit is contained in:
parent
2f7674d31a
commit
9ada8edddc
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user