--- a/config.arg.h Fri Aug 25 15:06:38 2006 +0200
+++ b/config.arg.h Fri Aug 25 15:12:32 2006 +0200
@@ -15,6 +15,8 @@
#define NORMFGCOLOR "#cccccc"
#define STATUSBGCOLOR "#dddddd"
#define STATUSFGCOLOR "#222222"
+#define FLOATSYMBOL "><"
+#define TILEDSYMBOL "|="
#define MODKEY Mod1Mask
#define MASTERW 60 /* percent */
--- a/config.default.h Fri Aug 25 15:06:38 2006 +0200
+++ b/config.default.h Fri Aug 25 15:12:32 2006 +0200
@@ -15,6 +15,8 @@
#define NORMFGCOLOR "#cccccc"
#define STATUSBGCOLOR "#dddddd"
#define STATUSFGCOLOR "#222222"
+#define FLOATSYMBOL "~"
+#define TILEDSYMBOL "#"
#define MODKEY Mod1Mask
#define MASTERW 60 /* percent */
--- a/draw.c Fri Aug 25 15:06:38 2006 +0200
+++ b/draw.c Fri Aug 25 15:12:32 2006 +0200
@@ -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]);
--- a/main.c Fri Aug 25 15:06:38 2006 +0200
+++ b/main.c Fri Aug 25 15:12:32 2006 +0200
@@ -129,7 +129,7 @@
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);