Mercurial > hg > index.fcgi > dwm > dwm-3.6.1-11pba
diff config.default.h @ 0:7024076fa948
initial add
author | paulo@localhost |
---|---|
date | Sun, 22 Mar 2009 23:26:35 -0700 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config.default.h Sun Mar 22 23:26:35 2009 -0700 1.3 @@ -0,0 +1,95 @@ 1.4 +/* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com> 1.5 + * See LICENSE file for license details. 1.6 + */ 1.7 + 1.8 +/* appearance */ 1.9 +#define BORDERPX 1 1.10 +#define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*" 1.11 +#define NORMBORDERCOLOR "#dddddd" 1.12 +#define NORMBGCOLOR "#eeeeee" 1.13 +#define NORMFGCOLOR "#222222" 1.14 +#define SELBORDERCOLOR "#ff0000" 1.15 +#define SELBGCOLOR "#006699" 1.16 +#define SELFGCOLOR "#ffffff" 1.17 +#define TOPBAR True /* False */ 1.18 + 1.19 +/* behavior */ 1.20 +#define SNAP 20 /* pixel */ 1.21 +#define TAGS \ 1.22 +const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; 1.23 +/* Query class:instance:title for regex matching info with following command: 1.24 + * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */ 1.25 +#define RULES \ 1.26 +static Rule rule[] = { \ 1.27 + /* class:instance:title regex tags regex isversatile */ \ 1.28 + { "Gimp", NULL, True }, \ 1.29 + { "MPlayer", NULL, True }, \ 1.30 + { "Acroread", NULL, True }, \ 1.31 +}; 1.32 + 1.33 +/* layout(s) */ 1.34 +#define LAYOUTS \ 1.35 +static Layout layout[] = { \ 1.36 + /* symbol function */ \ 1.37 + { "[]=", tile }, /* first entry is default */ \ 1.38 + { "><>", versatile }, \ 1.39 +}; 1.40 +#define MASTER 600 /* per thousand */ 1.41 +#define NMASTER 1 /* clients in master area */ 1.42 + 1.43 +/* key definitions */ 1.44 +#define MODKEY Mod1Mask 1.45 +#define KEYS \ 1.46 +static Key key[] = { \ 1.47 + /* modifier key function argument */ \ 1.48 + { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "exec xterm" } }, \ 1.49 + { MODKEY, XK_Tab, focusnext, { 0 } }, \ 1.50 + { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \ 1.51 + { MODKEY, XK_Return, zoom, { 0 } }, \ 1.52 + { MODKEY, XK_g, resizemaster, { .i = 15 } }, \ 1.53 + { MODKEY, XK_s, resizemaster, { .i = -15 } }, \ 1.54 + { MODKEY, XK_i, incnmaster, { .i = 1 } }, \ 1.55 + { MODKEY, XK_d, incnmaster, { .i = -1 } }, \ 1.56 + { MODKEY|ShiftMask, XK_0, tag, { .i = -1 } }, \ 1.57 + { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ 1.58 + { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ 1.59 + { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ 1.60 + { MODKEY|ShiftMask, XK_4, tag, { .i = 3 } }, \ 1.61 + { MODKEY|ShiftMask, XK_5, tag, { .i = 4 } }, \ 1.62 + { MODKEY|ShiftMask, XK_6, tag, { .i = 5 } }, \ 1.63 + { MODKEY|ShiftMask, XK_7, tag, { .i = 6 } }, \ 1.64 + { MODKEY|ShiftMask, XK_8, tag, { .i = 7 } }, \ 1.65 + { MODKEY|ShiftMask, XK_9, tag, { .i = 8 } }, \ 1.66 + { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, { .i = 0 } }, \ 1.67 + { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, { .i = 1 } }, \ 1.68 + { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, { .i = 2 } }, \ 1.69 + { MODKEY|ControlMask|ShiftMask, XK_4, toggletag, { .i = 3 } }, \ 1.70 + { MODKEY|ControlMask|ShiftMask, XK_5, toggletag, { .i = 4 } }, \ 1.71 + { MODKEY|ControlMask|ShiftMask, XK_6, toggletag, { .i = 5 } }, \ 1.72 + { MODKEY|ControlMask|ShiftMask, XK_7, toggletag, { .i = 6 } }, \ 1.73 + { MODKEY|ControlMask|ShiftMask, XK_8, toggletag, { .i = 7 } }, \ 1.74 + { MODKEY|ControlMask|ShiftMask, XK_9, toggletag, { .i = 8 } }, \ 1.75 + { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ 1.76 + { MODKEY, XK_space, setlayout, { .i = -1 } }, \ 1.77 + { MODKEY|ShiftMask, XK_space, toggleversatile,{ 0 } }, \ 1.78 + { MODKEY, XK_0, view, { .i = -1 } }, \ 1.79 + { MODKEY, XK_1, view, { .i = 0 } }, \ 1.80 + { MODKEY, XK_2, view, { .i = 1 } }, \ 1.81 + { MODKEY, XK_3, view, { .i = 2 } }, \ 1.82 + { MODKEY, XK_4, view, { .i = 3 } }, \ 1.83 + { MODKEY, XK_5, view, { .i = 4 } }, \ 1.84 + { MODKEY, XK_6, view, { .i = 5 } }, \ 1.85 + { MODKEY, XK_7, view, { .i = 6 } }, \ 1.86 + { MODKEY, XK_8, view, { .i = 7 } }, \ 1.87 + { MODKEY, XK_9, view, { .i = 8 } }, \ 1.88 + { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \ 1.89 + { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \ 1.90 + { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \ 1.91 + { MODKEY|ControlMask, XK_4, toggleview, { .i = 3 } }, \ 1.92 + { MODKEY|ControlMask, XK_5, toggleview, { .i = 4 } }, \ 1.93 + { MODKEY|ControlMask, XK_6, toggleview, { .i = 5 } }, \ 1.94 + { MODKEY|ControlMask, XK_7, toggleview, { .i = 6 } }, \ 1.95 + { MODKEY|ControlMask, XK_8, toggleview, { .i = 7 } }, \ 1.96 + { MODKEY|ControlMask, XK_9, toggleview, { .i = 8 } }, \ 1.97 + { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ 1.98 +};