all repos — dwm @ dddd58a8cdc9ffd9f207c45316e9f9a28b4bf519

my dwm build

added symbols for different modes
Anselm R. Garbe arg@10kloc.org
Fri, 29 Sep 2006 18:08:20 +0200
commit

dddd58a8cdc9ffd9f207c45316e9f9a28b4bf519

parent

010fd21b2037923e9ba1f0d67a67bbf8d8da2c89

4 files changed, 13 insertions(+), 6 deletions(-)

jump to
M config.arg.hconfig.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"
M config.default.hconfig.default.h

@@ -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"
M draw.cdraw.c

@@ -104,7 +104,9 @@ dc.x += dc.w;

} 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);
M main.cmain.c

@@ -128,8 +128,11 @@ dc.sel[ColFG] = getcolor(SELFGCOLOR);

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);