Mercurial > aewl
changeset 516:e5f8d6ac509c
added symbols for different modes
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 29 Sep 2006 18:08:20 +0200 (2006-09-29) |
parents | d6d1d0033e3c |
children | 2b4bd49fc155 |
files | config.arg.h config.default.h draw.c main.c |
diffstat | 4 files changed, 13 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/config.arg.h Fri Sep 29 17:25:49 2006 +0200 +++ b/config.arg.h Fri Sep 29 18:08:20 2006 +0200 @@ -8,8 +8,9 @@ #define DEFMODE dotile /* dofloat */ #define FLOATSYMBOL "><>" -#define STACKPOS StackRight /* StackLeft, StackBottom */ -#define TILESYMBOL "[]=" +#define STACKPOS StackRight /* StackLeft */ +#define BSTACKSYMBOL "===" +#define VSTACKSYMBOL "[]=" #define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*" #define NORMBGCOLOR "#333333"
--- a/config.default.h Fri Sep 29 17:25:49 2006 +0200 +++ b/config.default.h Fri Sep 29 18:08:20 2006 +0200 @@ -9,7 +9,8 @@ #define DEFMODE dotile /* dofloat */ #define FLOATSYMBOL "><>" #define STACKPOS StackRight /* StackLeft */ -#define TILESYMBOL "[]=" +#define BSTACKSYMBOL "===" +#define VSTACKSYMBOL "[]=" #define FONT "fixed" #define NORMBGCOLOR "#333366"
--- a/draw.c Fri Sep 29 17:25:49 2006 +0200 +++ b/draw.c Fri Sep 29 18:08:20 2006 +0200 @@ -104,7 +104,9 @@ } dc.w = bmw; - drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False); + drawtext(arrange == dofloat ? + FLOATSYMBOL : stackpos == StackBottom ? + BSTACKSYMBOL : VSTACKSYMBOL, dc.status, False); x = dc.x + dc.w; dc.w = textw(stext);
--- a/main.c Fri Sep 29 17:25:49 2006 +0200 +++ b/main.c Fri Sep 29 18:08:20 2006 +0200 @@ -128,8 +128,11 @@ dc.status[ColBG] = getcolor(STATUSBGCOLOR); dc.status[ColFG] = getcolor(STATUSFGCOLOR); setfont(FONT); - - bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL); + + bmw = textw(VSTACKSYMBOL) > textw(BSTACKSYMBOL) ? + textw(VSTACKSYMBOL) : textw(BSTACKSYMBOL); + bmw = bmw > textw(FLOATSYMBOL) ? + bmw : textw(FLOATSYMBOL); sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen);