all repos — dwm @ daae3bba504fc705c5fd56363b656937eee5deb4

my dwm build

added viewall to mainstream (only Ross Mohns version, not the toggle)
Anselm R. Garbe arg@10kloc.org
Thu, 31 Aug 2006 18:02:38 +0200
commit

daae3bba504fc705c5fd56363b656937eee5deb4

parent

05fbbbd8dc3f990f07fe2055693bef0031fd4623

5 files changed, 17 insertions(+), 0 deletions(-)

jump to
M config.arg.hconfig.arg.h

@@ -48,6 +48,7 @@ { MODKEY, XK_1, view, { .i = 0 } }, \

{ 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 } }, \
M config.default.hconfig.default.h

@@ -46,6 +46,7 @@ { MODKEY, XK_2, view, { .i = 1 } }, \

{ 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 } }, \
M dwm.1dwm.1

@@ -112,6 +112,10 @@ .B Mod1-[0..n]

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
M dwm.hdwm.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);
M view.cview.c

@@ -274,6 +274,16 @@ arrange(NULL);

} 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;