about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2009-07-02 16:41:52 +0100
committerAnselm R Garbe <garbeam@gmail.com>2009-07-02 16:41:52 +0100
commit7ac8c1d4e16d85fdb21d10fab798c878718cee21 (patch)
treed9ae06f361599faac424751da02da62c1c258045
parent16e1ef5d400a501780fc676de01ed4ea7638e7a9 (diff)
downloaddwm-7ac8c1d4e16d85fdb21d10fab798c878718cee21.tar.gz
introduced monitor symbols
-rw-r--r--config.def.h3
-rw-r--r--dwm.c7
2 files changed, 5 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h
index e3bb832..8596110 100644
--- a/config.def.h
+++ b/config.def.h
@@ -13,6 +13,9 @@ static const char selfgcolor[]      = "#ffffff";
 static unsigned int borderpx        = 1;        /* border pixel of windows */
 static unsigned int snap            = 32;       /* snap pixel */
 
+/* monitor(s) symbols */
+static const char *monsyms[] = { "I", "II", "III", "IV", "V" };
+
 /* tagging */
 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
 
diff --git a/dwm.c b/dwm.c
index 32b7fc8..5c714db 100644
--- a/dwm.c
+++ b/dwm.c
@@ -635,11 +635,8 @@ drawbar(Monitor *m) {
 
 	dc.x = 0;
 	if(mons->next) { /* more than a single monitor */
-		char buf[2];
-		buf[0] = m->screen_number + '0';
-		buf[1] = '\0';
-		dc.w = TEXTW(buf);
-		drawtext(buf, selmon == m ? dc.sel : dc.norm, True);
+		dc.w = TEXTW(monsyms[m->screen_number]);
+		drawtext(monsyms[m->screen_number], selmon == m ? dc.sel : dc.norm, True);
 		dc.x += dc.w;
 	}
 	m->btx = dc.x;
committer Kartik K. Agaram <vc@akkartik.com> 2016-09-30 10:45:14 -0700 3431' href='/akkartik/mu/commit/html/044space_surround.cc.html?h=hlt&id=3e1349d29fa00db1fab3a811b60bc9d8de0355e4'>3e1349d2 ^
9e751bb8 ^
87c5b329 ^
4690ce81 ^
4a39d12d ^
a654e4ec ^
e5c11a51 ^
70f4e9b6 ^
4a39d12d ^
9e751bb8 ^

672e3e50 ^

a654e4ec ^



e5c11a51 ^






















a654e4ec ^

672e3e50 ^
e5c11a51 ^
a654e4ec ^
204dae92 ^







201458e3 ^
615f4a97 ^
204dae92 ^

615f4a97 ^
204dae92 ^


















615f4a97 ^
204dae92 ^






bfa3f5ba ^
615f4a97 ^
204dae92 ^

615f4a97 ^

9e751bb8 ^
2c678a4e ^
204dae92 ^


615f4a97 ^
2c678a4e ^
9e751bb8 ^

1c2d788b ^
51728d93 ^
9e751bb8 ^
204dae92 ^




201458e3 ^
204dae92 ^

672e3e50 ^


a654e4ec ^
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