improved wmiirc setup somewhat more

This commit is contained in:
Anselm R. Garbe 2006-02-10 20:52:32 +01:00
parent 9f2aa6ffc6
commit 3a87f2fbdd
2 changed files with 10 additions and 5 deletions

View File

@ -1146,6 +1146,7 @@ xwrite(IXPConn *c, Fcall *fcall)
}
break;
case Fcolors:
fprintf(stderr, "Fcolors len=%d i1=%d nlabel=%d\n", fcall->count, i1, nlabel);
if((i1 >= nlabel) || (fcall->count != 23)
|| (fcall->data[0] != '#') || (fcall->data[8] != '#')
|| (fcall->data[16] != '#')
@ -1157,7 +1158,8 @@ xwrite(IXPConn *c, Fcall *fcall)
draw_bar();
break;
case Fselcolors:
if((i1 >= nlabel) || (fcall->count != 23)
fprintf(stderr, "Fselcolors len=%d\n", fcall->count);
if((fcall->count != 23)
|| (fcall->data[0] != '#') || (fcall->data[8] != '#')
|| (fcall->data[16] != '#')
)
@ -1170,7 +1172,8 @@ xwrite(IXPConn *c, Fcall *fcall)
draw_client(client[i]);
break;
case Fnormcolors:
if((i1 >= nlabel) || (fcall->count != 23)
fprintf(stderr, "Fnormcolors len=%d\n", fcall->count);
if((fcall->count != 23)
|| (fcall->data[0] != '#') || (fcall->data[8] != '#')
|| (fcall->data[16] != '#')
)

View File

@ -72,9 +72,11 @@ for(i in 1 2 3 4 5 6 7 8 9)
# WMIIBAR CONFIGURATION
for(i in 1 2 3)
wmiir remove /bar/1
for(i in 1 2 3)
xwrite /bar/new/data $i
wmiir remove /bar/1 >/dev/null >[2=1]
xwrite /bar/new/colors $WMII_NORMCOLORS
xwrite /bar/new/colors $WMII_SELCOLORS
xwrite /bar/new/colors $WMII_NORMCOLORS
xwrite /bar/1/data 1
xwrite /bar/expand 2