about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-31 18:02:38 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-31 18:02:38 +0200
commitdaae3bba504fc705c5fd56363b656937eee5deb4 (patch)
treeef2cb9bc82b2e19ca8ae58d0ba3864660c4d8bc7
parent05fbbbd8dc3f990f07fe2055693bef0031fd4623 (diff)
downloaddwm-daae3bba504fc705c5fd56363b656937eee5deb4.tar.gz
added viewall to mainstream (only Ross Mohns version, not the toggle)
-rw-r--r--config.arg.h1
-rw-r--r--config.default.h1
-rw-r--r--dwm.14
-rw-r--r--dwm.h1
-rw-r--r--view.c10
5 files changed, 17 insertions, 0 deletions
diff --git a/config.arg.h b/config.arg.h
index 2d80342..3862be4 100644
--- a/config.arg.h
+++ b/config.arg.h
@@ -48,6 +48,7 @@ static Key key[] = { \
 	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
 	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
 	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
+	{ MODKEY,			XK_a,		viewall,	{ 0 } }, \
 	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
 	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
 	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
diff --git a/config.default.h b/config.default.h
index 6147c98..35729ac 100644
--- a/config.default.h
+++ b/config.default.h
@@ -46,6 +46,7 @@ static Key key[] = { \
 	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
 	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
 	{ MODKEY,			XK_5,		view,		{ .i = 4 } }, \
+	{ MODKEY,			XK_a,		viewall,	{ 0 } }, \
 	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
 	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
 	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
diff --git a/dwm.1 b/dwm.1
index 6a75b1d..95f6d22 100644
--- a/dwm.1
+++ b/dwm.1
@@ -112,6 +112,10 @@ mode (affects
 View all windows with
 .BR "tag n" .
 .TP
+.B Mod1-a
+View all windows with any
+.BR "tag" .
+.TP
 .B Mod1-Control-[0..n]
 Add/remove all windows with
 .B tag n
diff --git a/dwm.h b/dwm.h
index b416851..d8ce212 100644
--- a/dwm.h
+++ b/dwm.h
@@ -137,4 +137,5 @@ extern void restack();
 extern void togglemode(Arg *arg);
 extern void toggleview(Arg *arg);
 extern void view(Arg *arg);
+extern void viewall(Arg *arg);
 extern void zoom(Arg *arg);
diff --git a/view.c b/view.c
index aa0a23a..bb0647a 100644
--- a/view.c
+++ b/view.c
@@ -274,6 +274,16 @@ view(Arg *arg)
 }
 
 void
+viewall(Arg *arg)
+{
+	unsigned int i;
+
+	for(i = 0; i < ntags; i++)
+		seltag[i] = True;
+	arrange(NULL);
+}
+
+void
 zoom(Arg *arg)
 {
 	Client *c = sel;
Agaram <vc@akkartik.com> 2020-04-03 12:35:53 -0700 committer Kartik Agaram <vc@akkartik.com> 2020-04-03 12:35:53 -0700 6182 - start of support for safe handles' href='/akkartik/mu/commit/apps/ex11.subx?h=main&id=bfcc0f858aa324739ad645e2056d73a47ab66f82'>bfcc0f85 ^
7e84fc51 ^
bfcc0f85 ^
1639687b ^
bfcc0f85 ^
1639687b ^


3fcc2371 ^
1639687b ^







33352536 ^





1639687b ^
7a583220 ^
33352536 ^

ee9a9237 ^
33352536 ^






bfcc0f85 ^
33352536 ^








1639687b ^

33352536 ^
6070c23e ^
1639687b ^
33352536 ^
1639687b ^
33352536 ^
7e84fc51 ^
6323661c ^
6070c23e ^
7e84fc51 ^
33352536 ^
6070c23e ^
1639687b ^
33352536 ^
1639687b ^
33352536 ^
1639687b ^
33352536 ^
1639687b ^


33352536 ^
6323661c ^
6070c23e ^
1639687b ^
33352536 ^
1639687b ^

33352536 ^
1639687b ^
ee9a9237 ^
33352536 ^




7a583220 ^
33352536 ^

6030d7e2 ^
7e84fc51 ^
9d27e966 ^
7e84fc51 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
1639687b ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
7e84fc51 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
1639687b ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
7e84fc51 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
1639687b ^
ee9a9237 ^
1639687b ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
7e84fc51 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
1639687b ^
ee9a9237 ^
1639687b ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
7e84fc51 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
1639687b ^
ee9a9237 ^
1639687b ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
7e84fc51 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
1639687b ^
ee9a9237 ^
1639687b ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
7e84fc51 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
1639687b ^
ee9a9237 ^
1639687b ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
7e84fc51 ^
9d27e966 ^
7e84fc51 ^

71eb22a5 ^
7a583220 ^
33352536 ^

ee9a9237 ^
33352536 ^






6030d7e2 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
9d27e966 ^
6030d7e2 ^
9d27e966 ^
03d50cc8 ^
33352536 ^


ee9a9237 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
7e84fc51 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
03d50cc8 ^
ee9a9237 ^
33352536 ^

6030d7e2 ^
33352536 ^

6030d7e2 ^
7e84fc51 ^
71eb22a5 ^
7a583220 ^
33352536 ^

ee9a9237 ^
33352536 ^



6030d7e2 ^
9d27e966 ^
33352536 ^
9d27e966 ^
33352536 ^

9d27e966 ^
33352536 ^

9d27e966 ^
ecfbbfb5 ^
ee9a9237 ^
33352536 ^



9d27e966 ^
33352536 ^

6030d7e2 ^
7e84fc51 ^
ecfbbfb5 ^
e5cbbea4 ^
7e84fc51 ^
6030d7e2 ^
9b16f190 ^
6030d7e2 ^

7e84fc51 ^
03d50cc8 ^

6030d7e2 ^
1639687b ^

6030d7e2 ^
7e84fc51 ^
ee9a9237 ^
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355