dwm-meillo

changeset 748:61821891835c

statusbar: removed squares, removed modesymbols, normcolor for client title
author meillo@marmaro.de
date Sun, 11 Feb 2007 12:20:54 +0100
parents f0e6c8860014
children 6692d7e7e156
files config.h draw.c
diffstat 2 files changed, 4 insertions(+), 15 deletions(-) [+]
line diff
     1.1 --- a/config.h	Sun Feb 11 12:04:45 2007 +0100
     1.2 +++ b/config.h	Sun Feb 11 12:20:54 2007 +0100
     1.3 @@ -7,8 +7,8 @@
     1.4  
     1.5  #define BORDERPX		1
     1.6  #define DEFMODE			dotile		/* dofloat */
     1.7 -#define FLOATSYMBOL		"F"
     1.8 -#define TILESYMBOL		"T"
     1.9 +#define FLOATSYMBOL		""
    1.10 +#define TILESYMBOL		""
    1.11  
    1.12  #define FONT			"-*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*"
    1.13  #define NORMBGCOLOR		"#333333"
     2.1 --- a/draw.c	Sun Feb 11 12:04:45 2007 +0100
     2.2 +++ b/draw.c	Sun Feb 11 12:20:54 2007 +0100
     2.3 @@ -72,17 +72,6 @@
     2.4  		XChangeGC(dpy, dc.gc, GCForeground | GCFont, &gcv);
     2.5  		XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
     2.6  	}
     2.7 -	x = (h + 2) / 4;
     2.8 -	r.x = dc.x + 1;
     2.9 -	r.y = dc.y + 1;
    2.10 -	if(filledsquare) {
    2.11 -		r.width = r.height = x + 1;
    2.12 -		XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
    2.13 -	}
    2.14 -	else if(emptysquare) {
    2.15 -		r.width = r.height = x;
    2.16 -		XDrawRectangles(dpy, dc.drawable, dc.gc, &r, 1);
    2.17 -	}
    2.18  }
    2.19  
    2.20  /* extern */
    2.21 @@ -98,7 +87,7 @@
    2.22  			drawtext(tags[i], dc.sel, sel && sel->tags[i], isoccupied(i));
    2.23  		else
    2.24  			drawtext(tags[i], dc.norm, sel && sel->tags[i], isoccupied(i));
    2.25 -		dc.x += dc.w;
    2.26 +		dc.x += dc.w + 1;
    2.27  	}
    2.28  	dc.w = bmw;
    2.29  	drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False);
    2.30 @@ -112,7 +101,7 @@
    2.31  	drawtext(stext, dc.norm, False, False);
    2.32  	if((dc.w = dc.x - x) > bh) {
    2.33  		dc.x = x;
    2.34 -		drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False);
    2.35 +		drawtext(sel ? sel->name : NULL, dc.norm, False, False);
    2.36  	}
    2.37  	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0);
    2.38  	XSync(dpy, False);