aewl

changeset 395:7528080beb0e

added viewall to mainstream (only Ross Mohns version, not the toggle)
author Anselm R. Garbe <arg@10kloc.org>
date Thu, 31 Aug 2006 18:02:38 +0200
parents 1da9a6b94ca9
children be3be9590d5c
files config.arg.h config.default.h dwm.1 dwm.h view.c
diffstat 5 files changed, 17 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/config.arg.h	Thu Aug 31 17:49:04 2006 +0200
     1.2 +++ b/config.arg.h	Thu Aug 31 18:02:38 2006 +0200
     1.3 @@ -48,6 +48,7 @@
     1.4  	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
     1.5  	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
     1.6  	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
     1.7 +	{ MODKEY,			XK_a,		viewall,	{ 0 } }, \
     1.8  	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
     1.9  	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
    1.10  	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
     2.1 --- a/config.default.h	Thu Aug 31 17:49:04 2006 +0200
     2.2 +++ b/config.default.h	Thu Aug 31 18:02:38 2006 +0200
     2.3 @@ -46,6 +46,7 @@
     2.4  	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
     2.5  	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
     2.6  	{ MODKEY,			XK_5,		view,		{ .i = 4 } }, \
     2.7 +	{ MODKEY,			XK_a,		viewall,	{ 0 } }, \
     2.8  	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
     2.9  	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
    2.10  	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
     3.1 --- a/dwm.1	Thu Aug 31 17:49:04 2006 +0200
     3.2 +++ b/dwm.1	Thu Aug 31 18:02:38 2006 +0200
     3.3 @@ -112,6 +112,10 @@
     3.4  View all windows with
     3.5  .BR "tag n" .
     3.6  .TP
     3.7 +.B Mod1-a
     3.8 +View all windows with any
     3.9 +.BR "tag" .
    3.10 +.TP
    3.11  .B Mod1-Control-[0..n]
    3.12  Add/remove all windows with
    3.13  .B tag n
     4.1 --- a/dwm.h	Thu Aug 31 17:49:04 2006 +0200
     4.2 +++ b/dwm.h	Thu Aug 31 18:02:38 2006 +0200
     4.3 @@ -137,4 +137,5 @@
     4.4  extern void togglemode(Arg *arg);
     4.5  extern void toggleview(Arg *arg);
     4.6  extern void view(Arg *arg);
     4.7 +extern void viewall(Arg *arg);
     4.8  extern void zoom(Arg *arg);
     5.1 --- a/view.c	Thu Aug 31 17:49:04 2006 +0200
     5.2 +++ b/view.c	Thu Aug 31 18:02:38 2006 +0200
     5.3 @@ -274,6 +274,16 @@
     5.4  }
     5.5  
     5.6  void
     5.7 +viewall(Arg *arg)
     5.8 +{
     5.9 +	unsigned int i;
    5.10 +
    5.11 +	for(i = 0; i < ntags; i++)
    5.12 +		seltag[i] = True;
    5.13 +	arrange(NULL);
    5.14 +}
    5.15 +
    5.16 +void
    5.17  zoom(Arg *arg)
    5.18  {
    5.19  	Client *c = sel;