aewl
diff config.default.h @ 586:c2ddd15b199e
changing Key.func into Key.func[NFUNCS], this allows sequences execution of functions per keypress (avoids implementing useless masterfunctions which call atomic ones)
author | arg@mig29 |
---|---|
date | Mon, 27 Nov 2006 13:21:38 +0100 |
parents | 37281ebc1b5b |
children | 732c58a3d92d |
line diff
1.1 --- a/config.default.h Mon Nov 27 11:05:47 2006 +0100 1.2 +++ b/config.default.h Mon Nov 27 13:21:38 2006 +0100 1.3 @@ -17,44 +17,45 @@ 1.4 #define STATUSBGCOLOR "#dddddd" 1.5 #define STATUSFGCOLOR "#222222" 1.6 1.7 -#define MASTER 600 /* per thousand */ 1.8 +#define MASTER 600 /* per thousand */ 1.9 #define MODKEY Mod1Mask 1.10 -#define SNAP 20 /* pixel */ 1.11 +#define NFUNCS 1 /* number of funcs per key */ 1.12 +#define SNAP 20 /* pixel */ 1.13 1.14 #define KEYS \ 1.15 static Key key[] = { \ 1.16 - /* modifier key function arguments */ \ 1.17 - { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "exec xterm" } }, \ 1.18 - { MODKEY, XK_Tab, focusnext, { 0 } }, \ 1.19 - { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \ 1.20 - { MODKEY, XK_Return, zoom, { 0 } }, \ 1.21 - { MODKEY, XK_g, resizemaster, { .i = 15 } }, \ 1.22 - { MODKEY, XK_s, resizemaster, { .i = -15 } }, \ 1.23 - { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ 1.24 - { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ 1.25 - { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ 1.26 - { MODKEY|ShiftMask, XK_4, tag, { .i = 3 } }, \ 1.27 - { MODKEY|ShiftMask, XK_5, tag, { .i = 4 } }, \ 1.28 - { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, { .i = 0 } }, \ 1.29 - { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, { .i = 1 } }, \ 1.30 - { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, { .i = 2 } }, \ 1.31 - { MODKEY|ControlMask|ShiftMask, XK_4, toggletag, { .i = 3 } }, \ 1.32 - { MODKEY|ControlMask|ShiftMask, XK_5, toggletag, { .i = 4 } }, \ 1.33 - { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ 1.34 - { MODKEY, XK_space, togglemode, { 0 } }, \ 1.35 - { MODKEY|ShiftMask, XK_space, togglefloat, { 0 } }, \ 1.36 - { MODKEY, XK_0, viewall, { 0 } }, \ 1.37 - { MODKEY, XK_1, view, { .i = 0 } }, \ 1.38 - { MODKEY, XK_2, view, { .i = 1 } }, \ 1.39 - { MODKEY, XK_3, view, { .i = 2 } }, \ 1.40 - { MODKEY, XK_4, view, { .i = 3 } }, \ 1.41 - { MODKEY, XK_5, view, { .i = 4 } }, \ 1.42 - { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \ 1.43 - { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \ 1.44 - { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \ 1.45 - { MODKEY|ControlMask, XK_4, toggleview, { .i = 3 } }, \ 1.46 - { MODKEY|ControlMask, XK_5, toggleview, { .i = 4 } }, \ 1.47 - { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ 1.48 + /* modifier key functions arguments */ \ 1.49 + { MODKEY|ShiftMask, XK_Return, { spawn }, { .cmd = "exec xterm" } }, \ 1.50 + { MODKEY, XK_Tab, { focusnext }, { 0 } }, \ 1.51 + { MODKEY|ShiftMask, XK_Tab, { focusprev }, { 0 } }, \ 1.52 + { MODKEY, XK_Return, { zoom }, { 0 } }, \ 1.53 + { MODKEY, XK_g, { resizemaster }, { .i = 15 } }, \ 1.54 + { MODKEY, XK_s, { resizemaster }, { .i = -15 } }, \ 1.55 + { MODKEY|ShiftMask, XK_1, { tag }, { .i = 0 } }, \ 1.56 + { MODKEY|ShiftMask, XK_2, { tag }, { .i = 1 } }, \ 1.57 + { MODKEY|ShiftMask, XK_3, { tag }, { .i = 2 } }, \ 1.58 + { MODKEY|ShiftMask, XK_4, { tag }, { .i = 3 } }, \ 1.59 + { MODKEY|ShiftMask, XK_5, { tag }, { .i = 4 } }, \ 1.60 + { MODKEY|ControlMask|ShiftMask, XK_1, { toggletag }, { .i = 0 } }, \ 1.61 + { MODKEY|ControlMask|ShiftMask, XK_2, { toggletag }, { .i = 1 } }, \ 1.62 + { MODKEY|ControlMask|ShiftMask, XK_3, { toggletag }, { .i = 2 } }, \ 1.63 + { MODKEY|ControlMask|ShiftMask, XK_4, { toggletag }, { .i = 3 } }, \ 1.64 + { MODKEY|ControlMask|ShiftMask, XK_5, { toggletag }, { .i = 4 } }, \ 1.65 + { MODKEY|ShiftMask, XK_c, { killclient }, { 0 } }, \ 1.66 + { MODKEY, XK_space, { togglemode }, { 0 } }, \ 1.67 + { MODKEY|ShiftMask, XK_space, { togglefloat }, { 0 } }, \ 1.68 + { MODKEY, XK_0, { viewall }, { 0 } }, \ 1.69 + { MODKEY, XK_1, { view }, { .i = 0 } }, \ 1.70 + { MODKEY, XK_2, { view }, { .i = 1 } }, \ 1.71 + { MODKEY, XK_3, { view }, { .i = 2 } }, \ 1.72 + { MODKEY, XK_4, { view }, { .i = 3 } }, \ 1.73 + { MODKEY, XK_5, { view }, { .i = 4 } }, \ 1.74 + { MODKEY|ControlMask, XK_1, { toggleview }, { .i = 0 } }, \ 1.75 + { MODKEY|ControlMask, XK_2, { toggleview }, { .i = 1 } }, \ 1.76 + { MODKEY|ControlMask, XK_3, { toggleview }, { .i = 2 } }, \ 1.77 + { MODKEY|ControlMask, XK_4, { toggleview }, { .i = 3 } }, \ 1.78 + { MODKEY|ControlMask, XK_5, { toggleview }, { .i = 4 } }, \ 1.79 + { MODKEY|ShiftMask, XK_q, { quit }, { 0 } }, \ 1.80 }; 1.81 1.82 /* Query class:instance:title for regex matching info with following command: