about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 };
 
 #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);
ii.de> 2006-07-10 22:16:48 +0200 committer Anselm R. Garbe <garbeam@wmii.de> 2006-07-10 22:16:48 +0200 added several other stuff' href='/acidbong/suckless/dwm/commit/util.c?h=5.3&id=439e15d09f6fa9271d3b49ef97194f0c80ebe161'>439e15d ^
3a69c51 ^


















3a69c51 ^

16c67f3 ^
3a69c51 ^


16c67f3 ^

3a69c51 ^














26e134b ^




































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187