From dddd58a8cdc9ffd9f207c45316e9f9a28b4bf519 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Fri, 29 Sep 2006 18:08:20 +0200 Subject: added symbols for different modes --- config.arg.h | 5 +++-- config.default.h | 3 ++- draw.c | 4 +++- main.c | 7 +++++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/config.arg.h b/config.arg.h index 6a36c22..7817825 100644 --- a/config.arg.h +++ b/config.arg.h @@ -8,8 +8,9 @@ const char *tags[] = { "dev", "work", "net", "fnord", NULL }; #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" diff --git a/config.default.h b/config.default.h index 8075110..8075264 100644 --- a/config.default.h +++ b/config.default.h @@ -9,7 +9,8 @@ const char *tags[] = { "1", "2", "3", "4", "5", NULL }; #define DEFMODE dotile /* dofloat */ #define FLOATSYMBOL "><>" #define STACKPOS StackRight /* StackLeft */ -#define TILESYMBOL "[]=" +#define BSTACKSYMBOL "===" +#define VSTACKSYMBOL "[]=" #define FONT "fixed" #define NORMBGCOLOR "#333366" diff --git a/draw.c b/draw.c index 362d025..dc2bdb6 100644 --- a/draw.c +++ b/draw.c @@ -104,7 +104,9 @@ drawstatus(void) { } 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); diff --git a/main.c b/main.c index a1fdde1..6de4f8a 100644 --- a/main.c +++ b/main.c @@ -128,8 +128,11 @@ setup(void) { 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); -- cgit v1.2.3-70-g09d2