aboutsummaryrefslogtreecommitdiff
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)
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;