summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-29 18:08:20 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-29 18:08:20 +0200
commitdddd58a8cdc9ffd9f207c45316e9f9a28b4bf519 (patch)
tree99da0740293ed099f9bef473a6ce3fde893c7e72
parentremoved useless updatemaster (diff)
downloaddwm-dddd58a8cdc9ffd9f207c45316e9f9a28b4bf519.tar.gz
dwm-dddd58a8cdc9ffd9f207c45316e9f9a28b4bf519.zip
added symbols for different modes
-rw-r--r--config.arg.h5
-rw-r--r--config.default.h3
-rw-r--r--draw.c4
-rw-r--r--main.c7
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 };
8 8
9#define DEFMODE dotile /* dofloat */ 9#define DEFMODE dotile /* dofloat */
10#define FLOATSYMBOL "><>" 10#define FLOATSYMBOL "><>"
11#define STACKPOS StackRight /* StackLeft, StackBottom */ 11#define STACKPOS StackRight /* StackLeft */
12#define TILESYMBOL "[]=" 12#define BSTACKSYMBOL "==="
13#define VSTACKSYMBOL "[]="
13 14
14#define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*" 15#define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
15#define NORMBGCOLOR "#333333" 16#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 };
9#define DEFMODE dotile /* dofloat */ 9#define DEFMODE dotile /* dofloat */
10#define FLOATSYMBOL "><>" 10#define FLOATSYMBOL "><>"
11#define STACKPOS StackRight /* StackLeft */ 11#define STACKPOS StackRight /* StackLeft */
12#define TILESYMBOL "[]=" 12#define BSTACKSYMBOL "==="
13#define VSTACKSYMBOL "[]="
13 14
14#define FONT "fixed" 15#define FONT "fixed"
15#define NORMBGCOLOR "#333366" 16#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) {
104 } 104 }
105 105
106 dc.w = bmw; 106 dc.w = bmw;
107 drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False); 107 drawtext(arrange == dofloat ?
108 FLOATSYMBOL : stackpos == StackBottom ?
109 BSTACKSYMBOL : VSTACKSYMBOL, dc.status, False);
108 110
109 x = dc.x + dc.w; 111 x = dc.x + dc.w;
110 dc.w = textw(stext); 112 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) {
128 dc.status[ColBG] = getcolor(STATUSBGCOLOR); 128 dc.status[ColBG] = getcolor(STATUSBGCOLOR);
129 dc.status[ColFG] = getcolor(STATUSFGCOLOR); 129 dc.status[ColFG] = getcolor(STATUSFGCOLOR);
130 setfont(FONT); 130 setfont(FONT);
131 131
132 bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL); 132 bmw = textw(VSTACKSYMBOL) > textw(BSTACKSYMBOL) ?
133 textw(VSTACKSYMBOL) : textw(BSTACKSYMBOL);
134 bmw = bmw > textw(FLOATSYMBOL) ?
135 bmw : textw(FLOATSYMBOL);
133 sx = sy = 0; 136 sx = sy = 0;
134 sw = DisplayWidth(dpy, screen); 137 sw = DisplayWidth(dpy, screen);
135 sh = DisplayHeight(dpy, screen); 138 sh = DisplayHeight(dpy, screen);