Introduction
Introduction Statistics Contact Development Disclaimer Help
tadded viewall to mainstream (only Ross Mohns version, not the toggle) - dwm - …
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit daae3bba504fc705c5fd56363b656937eee5deb4
parent 05fbbbd8dc3f990f07fe2055693bef0031fd4623
Author: Anselm R. Garbe <[email protected]>
Date: Thu, 31 Aug 2006 18:02:38 +0200
added viewall to mainstream (only Ross Mohns version, not the toggle)
Diffstat:
M config.arg.h | 1 +
M config.default.h | 1 +
M dwm.1 | 4 ++++
M dwm.h | 1 +
M view.c | 10 ++++++++++
5 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/config.arg.h b/config.arg.h
t@@ -48,6 +48,7 @@ static Key key[] = { \
{ MODKEY, XK_2, view, …
{ MODKEY, XK_3, view, …
{ MODKEY, XK_4, view, …
+ { MODKEY, XK_a, viewall, …
{ MODKEY|ControlMask, XK_1, toggleview, …
{ MODKEY|ControlMask, XK_2, toggleview, …
{ MODKEY|ControlMask, XK_3, toggleview, …
diff --git a/config.default.h b/config.default.h
t@@ -46,6 +46,7 @@ static Key key[] = { \
{ MODKEY, XK_3, view, …
{ MODKEY, XK_4, view, …
{ MODKEY, XK_5, view, …
+ { MODKEY, XK_a, viewall, …
{ MODKEY|ControlMask, XK_1, toggleview, …
{ MODKEY|ControlMask, XK_2, toggleview, …
{ MODKEY|ControlMask, XK_3, toggleview, …
diff --git a/dwm.1 b/dwm.1
t@@ -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
t@@ -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
t@@ -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;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.