dwm-meillo
changeset 594:f7dcd3ac8d6f
removed viewall(), replaced with view(-1); added tag(-1) to tag a client with all tags (new key combo MODKEY-Shift-0)
author | arg@mig29 |
---|---|
date | Thu, 30 Nov 2006 15:27:43 +0100 |
parents | c4ecdb5500f6 |
children | 9304ea275b1a |
files | config.arg.h config.default.h dwm.1 tag.c view.c |
diffstat | 5 files changed, 9 insertions(+), 13 deletions(-) [+] |
line diff
1.1 --- a/config.arg.h Thu Nov 30 09:19:52 2006 +0100 1.2 +++ b/config.arg.h Thu Nov 30 15:27:43 2006 +0100 1.3 @@ -35,6 +35,7 @@ 1.4 { MODKEY, XK_Return, zoom, { 0 } }, \ 1.5 { MODKEY, XK_g, resizemaster, { .i = 15 } }, \ 1.6 { MODKEY, XK_s, resizemaster, { .i = -15 } }, \ 1.7 + { MODKEY|ShiftMask, XK_0, tag, { .i = -1 } }, \ 1.8 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ 1.9 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ 1.10 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ 1.11 @@ -46,7 +47,7 @@ 1.12 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ 1.13 { MODKEY, XK_space, togglemode, { 0 } }, \ 1.14 { MODKEY|ShiftMask, XK_space, togglefloat, { 0 } }, \ 1.15 - { MODKEY, XK_0, viewall, { 0 } }, \ 1.16 + { MODKEY, XK_0, view, { .i = -1 } }, \ 1.17 { MODKEY, XK_1, view, { .i = 0 } }, \ 1.18 { MODKEY, XK_2, view, { .i = 1 } }, \ 1.19 { MODKEY, XK_3, view, { .i = 2 } }, \
2.1 --- a/config.default.h Thu Nov 30 09:19:52 2006 +0100 2.2 +++ b/config.default.h Thu Nov 30 15:27:43 2006 +0100 2.3 @@ -30,6 +30,7 @@ 2.4 { MODKEY, XK_Return, zoom, { 0 } }, \ 2.5 { MODKEY, XK_g, resizemaster, { .i = 15 } }, \ 2.6 { MODKEY, XK_s, resizemaster, { .i = -15 } }, \ 2.7 + { MODKEY|ShiftMask, XK_0, tag, { .i = -1 } }, \ 2.8 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ 2.9 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ 2.10 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ 2.11 @@ -43,7 +44,7 @@ 2.12 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ 2.13 { MODKEY, XK_space, togglemode, { 0 } }, \ 2.14 { MODKEY|ShiftMask, XK_space, togglefloat, { 0 } }, \ 2.15 - { MODKEY, XK_0, viewall, { 0 } }, \ 2.16 + { MODKEY, XK_0, view, { .i = -1 } }, \ 2.17 { MODKEY, XK_1, view, { .i = 0 } }, \ 2.18 { MODKEY, XK_2, view, { .i = 1 } }, \ 2.19 { MODKEY, XK_3, view, { .i = 2 } }, \
3.1 --- a/dwm.1 Thu Nov 30 09:19:52 2006 +0100 3.2 +++ b/dwm.1 Thu Nov 30 15:27:43 2006 +0100 3.3 @@ -75,6 +75,9 @@ 3.4 .RB nth 3.5 tag to current window. 3.6 .TP 3.7 +.B Mod1-Shift-0 3.8 +Apply all tags to current window. 3.9 +.TP 3.10 .B Mod1-Control-Shift-[1..n] 3.11 Add/remove 3.12 .B nth
4.1 --- a/tag.c Thu Nov 30 09:19:52 2006 +0100 4.2 +++ b/tag.c Thu Nov 30 15:27:43 2006 +0100 4.3 @@ -113,7 +113,7 @@ 4.4 if(!sel) 4.5 return; 4.6 for(i = 0; i < ntags; i++) 4.7 - sel->tags[i] = False; 4.8 + sel->tags[i] = (arg->i == -1) ? True : False; 4.9 sel->tags[arg->i] = True; 4.10 arrange(); 4.11 }
5.1 --- a/view.c Thu Nov 30 09:19:52 2006 +0100 5.2 +++ b/view.c Thu Nov 30 15:27:43 2006 +0100 5.3 @@ -233,21 +233,12 @@ 5.4 unsigned int i; 5.5 5.6 for(i = 0; i < ntags; i++) 5.7 - seltag[i] = False; 5.8 + seltag[i] = (arg->i == -1) ? True : False; 5.9 seltag[arg->i] = True; 5.10 arrange(); 5.11 } 5.12 5.13 void 5.14 -viewall(Arg *arg) { 5.15 - unsigned int i; 5.16 - 5.17 - for(i = 0; i < ntags; i++) 5.18 - seltag[i] = True; 5.19 - arrange(); 5.20 -} 5.21 - 5.22 -void 5.23 zoom(Arg *arg) { 5.24 unsigned int n; 5.25 Client *c;