all repos — dwm @ aa471f2d65688f8cf4944c073ff05224bfac8a9c

my dwm build

removed a bunch of lines, made mode symbols configurable
Anselm R. Garbe arg@10kloc.org
Fri, 25 Aug 2006 15:12:32 +0200
commit

aa471f2d65688f8cf4944c073ff05224bfac8a9c

parent

d37dfa1bedbfadb5d39aa1937e77d4fd44319018

4 files changed, 7 insertions(+), 8 deletions(-)

jump to
M config.arg.hconfig.arg.h

@@ -15,6 +15,8 @@ #define NORMBGCOLOR "#333366"

#define NORMFGCOLOR "#cccccc" #define STATUSBGCOLOR "#dddddd" #define STATUSFGCOLOR "#222222" +#define FLOATSYMBOL "><" +#define TILEDSYMBOL "|=" #define MODKEY Mod1Mask #define MASTERW 60 /* percent */
M config.default.hconfig.default.h

@@ -15,6 +15,8 @@ #define NORMBGCOLOR "#333366"

#define NORMFGCOLOR "#cccccc" #define STATUSBGCOLOR "#dddddd" #define STATUSFGCOLOR "#222222" +#define FLOATSYMBOL "~" +#define TILEDSYMBOL "#" #define MODKEY Mod1Mask #define MASTERW 60 /* percent */
M draw.cdraw.c

@@ -94,18 +94,13 @@

void drawstatus() { - static const char *mode[] = { "><", "|=" }; int i, x; dc.x = dc.y = 0; dc.w = bw; - if(!modew) - modew = textw(mode[0]) > textw(mode[1]) ? textw(mode[0]) : textw(mode[1]); - drawtext(mode[arrange == dotile ? 1 : 0], dc.status, False); - - dc.w = 0; - dc.x = modew; + drawtext(arrange == dotile ? TILEDSYMBOL : FLOATSYMBOL, dc.status, False); + dc.w = modew; for(i = 0; i < ntags; i++) { dc.x += dc.w; dc.w = textw(tags[i]);
M main.cmain.c

@@ -129,7 +129,7 @@ dc.status[ColBG] = getcolor(STATUSBGCOLOR);

dc.status[ColFG] = getcolor(STATUSFGCOLOR); setfont(FONT); - modew = 0; + modew = textw(FLOATSYMBOL) > textw(TILEDSYMBOL) ? textw(FLOATSYMBOL) : textw(TILEDSYMBOL); sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen);