aewl
diff config.arg.h @ 589:732c58a3d92d
returning to old Key struct
author | arg@mig29 |
---|---|
date | Mon, 27 Nov 2006 17:49:58 +0100 |
parents | c2ddd15b199e |
children | f7dcd3ac8d6f |
line diff
1.1 --- a/config.arg.h Mon Nov 27 17:46:02 2006 +0100 1.2 +++ b/config.arg.h Mon Nov 27 17:49:58 2006 +0100 1.3 @@ -19,44 +19,43 @@ 1.4 1.5 #define MASTER 600 /* per thousand */ 1.6 #define MODKEY Mod1Mask 1.7 -#define NFUNCS 1 /* number of funcs per key */ 1.8 #define SNAP 40 /* pixel */ 1.9 1.10 #define KEYS \ 1.11 static Key key[] = { \ 1.12 - /* modifier key functions arguments */ \ 1.13 - { MODKEY|ShiftMask, XK_Return, { spawn }, \ 1.14 + /* modifier key function argument */ \ 1.15 + { MODKEY|ShiftMask, XK_Return, spawn, \ 1.16 { .cmd = "exec urxvtc -tr -bg black -fg '#eeeeee' -cr '#eeeeee' +sb -fn '"FONT"'" } }, \ 1.17 - { MODKEY, XK_p, { spawn }, \ 1.18 + { MODKEY, XK_p, spawn, \ 1.19 { .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \ 1.20 " | dmenu -font '"FONT"' -normbg '"NORMBGCOLOR"' -normfg '"NORMFGCOLOR"' " \ 1.21 "-selbg '"SELBGCOLOR"' -selfg '"SELFGCOLOR"')\" && exec $exe" } }, \ 1.22 - { MODKEY, XK_j, { focusnext }, { 0 } }, \ 1.23 - { MODKEY, XK_k, { focusprev }, { 0 } }, \ 1.24 - { MODKEY, XK_Return, { zoom }, { 0 } }, \ 1.25 - { MODKEY, XK_g, { resizemaster }, { .i = 15 } }, \ 1.26 - { MODKEY, XK_s, { resizemaster }, { .i = -15 } }, \ 1.27 - { MODKEY|ShiftMask, XK_1, { tag }, { .i = 0 } }, \ 1.28 - { MODKEY|ShiftMask, XK_2, { tag }, { .i = 1 } }, \ 1.29 - { MODKEY|ShiftMask, XK_3, { tag }, { .i = 2 } }, \ 1.30 - { MODKEY|ShiftMask, XK_4, { tag }, { .i = 3 } }, \ 1.31 - { MODKEY|ControlMask|ShiftMask, XK_1, { toggletag }, { .i = 0 } }, \ 1.32 - { MODKEY|ControlMask|ShiftMask, XK_2, { toggletag }, { .i = 1 } }, \ 1.33 - { MODKEY|ControlMask|ShiftMask, XK_3, { toggletag }, { .i = 2 } }, \ 1.34 - { MODKEY|ControlMask|ShiftMask, XK_4, { toggletag }, { .i = 3 } }, \ 1.35 - { MODKEY|ShiftMask, XK_c, { killclient }, { 0 } }, \ 1.36 - { MODKEY, XK_space, { togglemode }, { 0 } }, \ 1.37 - { MODKEY|ShiftMask, XK_space, { togglefloat }, { 0 } }, \ 1.38 - { MODKEY, XK_0, { viewall }, { 0 } }, \ 1.39 - { MODKEY, XK_1, { view }, { .i = 0 } }, \ 1.40 - { MODKEY, XK_2, { view }, { .i = 1 } }, \ 1.41 - { MODKEY, XK_3, { view }, { .i = 2 } }, \ 1.42 - { MODKEY, XK_4, { view }, { .i = 3 } }, \ 1.43 - { MODKEY|ControlMask, XK_1, { toggleview }, { .i = 0 } }, \ 1.44 - { MODKEY|ControlMask, XK_2, { toggleview }, { .i = 1 } }, \ 1.45 - { MODKEY|ControlMask, XK_3, { toggleview }, { .i = 2 } }, \ 1.46 - { MODKEY|ControlMask, XK_4, { toggleview }, { .i = 3 } }, \ 1.47 - { MODKEY|ShiftMask, XK_q, { quit }, { 0 } }, \ 1.48 + { MODKEY, XK_j, focusnext, { 0 } }, \ 1.49 + { MODKEY, XK_k, focusprev, { 0 } }, \ 1.50 + { MODKEY, XK_Return, zoom, { 0 } }, \ 1.51 + { MODKEY, XK_g, resizemaster, { .i = 15 } }, \ 1.52 + { MODKEY, XK_s, resizemaster, { .i = -15 } }, \ 1.53 + { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ 1.54 + { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ 1.55 + { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ 1.56 + { MODKEY|ShiftMask, XK_4, tag, { .i = 3 } }, \ 1.57 + { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, { .i = 0 } }, \ 1.58 + { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, { .i = 1 } }, \ 1.59 + { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, { .i = 2 } }, \ 1.60 + { MODKEY|ControlMask|ShiftMask, XK_4, toggletag, { .i = 3 } }, \ 1.61 + { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ 1.62 + { MODKEY, XK_space, togglemode, { 0 } }, \ 1.63 + { MODKEY|ShiftMask, XK_space, togglefloat, { 0 } }, \ 1.64 + { MODKEY, XK_0, viewall, { 0 } }, \ 1.65 + { MODKEY, XK_1, view, { .i = 0 } }, \ 1.66 + { MODKEY, XK_2, view, { .i = 1 } }, \ 1.67 + { MODKEY, XK_3, view, { .i = 2 } }, \ 1.68 + { MODKEY, XK_4, view, { .i = 3 } }, \ 1.69 + { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \ 1.70 + { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \ 1.71 + { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \ 1.72 + { MODKEY|ControlMask, XK_4, toggleview, { .i = 3 } }, \ 1.73 + { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ 1.74 }; 1.75 1.76 #define RULES \