dwm-meillo

changeset 516:e5f8d6ac509c

added symbols for different modes
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 29 Sep 2006 18:08:20 +0200
parents d6d1d0033e3c
children 2b4bd49fc155
files config.arg.h config.default.h draw.c main.c
diffstat 4 files changed, 13 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/config.arg.h	Fri Sep 29 17:25:49 2006 +0200
     1.2 +++ b/config.arg.h	Fri Sep 29 18:08:20 2006 +0200
     1.3 @@ -8,8 +8,9 @@
     1.4  
     1.5  #define DEFMODE			dotile		/* dofloat */
     1.6  #define FLOATSYMBOL		"><>"
     1.7 -#define STACKPOS		StackRight	/* StackLeft, StackBottom */
     1.8 -#define TILESYMBOL		"[]="
     1.9 +#define STACKPOS		StackRight	/* StackLeft */
    1.10 +#define BSTACKSYMBOL		"==="
    1.11 +#define VSTACKSYMBOL		"[]="
    1.12  
    1.13  #define FONT			"-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
    1.14  #define NORMBGCOLOR		"#333333"
     2.1 --- a/config.default.h	Fri Sep 29 17:25:49 2006 +0200
     2.2 +++ b/config.default.h	Fri Sep 29 18:08:20 2006 +0200
     2.3 @@ -9,7 +9,8 @@
     2.4  #define DEFMODE			dotile /* dofloat */
     2.5  #define FLOATSYMBOL		"><>"
     2.6  #define STACKPOS		StackRight	/* StackLeft */
     2.7 -#define TILESYMBOL		"[]="
     2.8 +#define BSTACKSYMBOL		"==="
     2.9 +#define VSTACKSYMBOL		"[]="
    2.10  
    2.11  #define FONT			"fixed"
    2.12  #define NORMBGCOLOR		"#333366"
     3.1 --- a/draw.c	Fri Sep 29 17:25:49 2006 +0200
     3.2 +++ b/draw.c	Fri Sep 29 18:08:20 2006 +0200
     3.3 @@ -104,7 +104,9 @@
     3.4  	}
     3.5  
     3.6  	dc.w = bmw;
     3.7 -	drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False);
     3.8 +	drawtext(arrange == dofloat ?
     3.9 +		FLOATSYMBOL : stackpos == StackBottom ?
    3.10 +			BSTACKSYMBOL : VSTACKSYMBOL, dc.status, False);
    3.11  
    3.12  	x = dc.x + dc.w;
    3.13  	dc.w = textw(stext);
     4.1 --- a/main.c	Fri Sep 29 17:25:49 2006 +0200
     4.2 +++ b/main.c	Fri Sep 29 18:08:20 2006 +0200
     4.3 @@ -128,8 +128,11 @@
     4.4  	dc.status[ColBG] = getcolor(STATUSBGCOLOR);
     4.5  	dc.status[ColFG] = getcolor(STATUSFGCOLOR);
     4.6  	setfont(FONT);
     4.7 -
     4.8 -	bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL);
     4.9 + 
    4.10 +	bmw = textw(VSTACKSYMBOL) > textw(BSTACKSYMBOL) ?
    4.11 +		textw(VSTACKSYMBOL) : textw(BSTACKSYMBOL);
    4.12 +	bmw = bmw > textw(FLOATSYMBOL) ?
    4.13 +		bmw : textw(FLOATSYMBOL);
    4.14  	sx = sy = 0;
    4.15  	sw = DisplayWidth(dpy, screen);
    4.16  	sh = DisplayHeight(dpy, screen);