aewl

diff config.default.h @ 749:6692d7e7e156

added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
author meillo@marmaro.de
date Sun, 11 Feb 2007 17:20:22 +0100
parents
children 743061dbe7f2
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config.default.h	Sun Feb 11 17:20:22 2007 +0100
     1.3 @@ -0,0 +1,90 @@
     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 +#define TAGS \
     1.9 +const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
    1.10 +
    1.11 +#define BORDERPX		1
    1.12 +#define DEFMODE			dotile		/* dofloat */
    1.13 +#define FLOATSYMBOL		"><>"
    1.14 +#define TILESYMBOL		"[]="
    1.15 +
    1.16 +#define FONT			"-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
    1.17 +#define NORMBORDERCOLOR		"#dddddd"
    1.18 +#define NORMBGCOLOR		"#eeeeee"
    1.19 +#define NORMFGCOLOR		"#222222"
    1.20 +#define SELBORDERCOLOR		"#ff0000"
    1.21 +#define SELBGCOLOR		"#006699"
    1.22 +#define SELFGCOLOR		"#ffffff"
    1.23 +
    1.24 +#define MASTER			600		/* per thousand */
    1.25 +#define MODKEY			Mod1Mask
    1.26 +#define NMASTER			1		/* clients in master area */
    1.27 +#define SNAP			20		/* pixel */
    1.28 +#define TOPBAR			True		/* False */
    1.29 +
    1.30 +#define KEYS \
    1.31 +static Key key[] = { \
    1.32 +	/* modifier			key		function	argument */ \
    1.33 +	{ MODKEY|ShiftMask,		XK_Return,	spawn,		{ .cmd = "exec xterm" } }, \
    1.34 +	{ MODKEY,			XK_Tab,		focusnext,	{ 0 } }, \
    1.35 +	{ MODKEY|ShiftMask,		XK_Tab,		focusprev,	{ 0 } }, \
    1.36 +	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
    1.37 +	{ MODKEY,			XK_g,		resizemaster,	{ .i = 15 } }, \
    1.38 +	{ MODKEY,			XK_s,		resizemaster,	{ .i = -15 } }, \
    1.39 +	{ MODKEY,			XK_i,		incnmaster,	{ .i = 1 } }, \
    1.40 +	{ MODKEY,			XK_d,		incnmaster,	{ .i = -1 } }, \
    1.41 +	{ MODKEY|ShiftMask,		XK_0,		tag,		{ .i = -1 } }, \
    1.42 +	{ MODKEY|ShiftMask,		XK_1,		tag,		{ .i = 0 } }, \
    1.43 +	{ MODKEY|ShiftMask,		XK_2,		tag,		{ .i = 1 } }, \
    1.44 +	{ MODKEY|ShiftMask,		XK_3,		tag,		{ .i = 2 } }, \
    1.45 +	{ MODKEY|ShiftMask,		XK_4,		tag,		{ .i = 3 } }, \
    1.46 +	{ MODKEY|ShiftMask,		XK_5,		tag,		{ .i = 4 } }, \
    1.47 +	{ MODKEY|ShiftMask,		XK_6,		tag,		{ .i = 5 } }, \
    1.48 +	{ MODKEY|ShiftMask,		XK_7,		tag,		{ .i = 6 } }, \
    1.49 +	{ MODKEY|ShiftMask,		XK_8,		tag,		{ .i = 7 } }, \
    1.50 +	{ MODKEY|ShiftMask,		XK_9,		tag,		{ .i = 8 } }, \
    1.51 +	{ MODKEY|ControlMask|ShiftMask,	XK_1,		toggletag,	{ .i = 0 } }, \
    1.52 +	{ MODKEY|ControlMask|ShiftMask,	XK_2,		toggletag,	{ .i = 1 } }, \
    1.53 +	{ MODKEY|ControlMask|ShiftMask,	XK_3,		toggletag,	{ .i = 2 } }, \
    1.54 +	{ MODKEY|ControlMask|ShiftMask,	XK_4,		toggletag,	{ .i = 3 } }, \
    1.55 +	{ MODKEY|ControlMask|ShiftMask,	XK_5,		toggletag,	{ .i = 4 } }, \
    1.56 +	{ MODKEY|ControlMask|ShiftMask,	XK_6,		toggletag,	{ .i = 5 } }, \
    1.57 +	{ MODKEY|ControlMask|ShiftMask,	XK_7,		toggletag,	{ .i = 6 } }, \
    1.58 +	{ MODKEY|ControlMask|ShiftMask,	XK_8,		toggletag,	{ .i = 7 } }, \
    1.59 +	{ MODKEY|ControlMask|ShiftMask,	XK_9,		toggletag,	{ .i = 8 } }, \
    1.60 +	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
    1.61 +	{ MODKEY,			XK_space,	togglemode,	{ 0 } }, \
    1.62 +	{ MODKEY|ShiftMask,		XK_space,	togglefloat,	{ 0 } }, \
    1.63 +	{ MODKEY,			XK_0,		view,		{ .i = -1 } }, \
    1.64 +	{ MODKEY,			XK_1,		view,		{ .i = 0 } }, \
    1.65 +	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
    1.66 +	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
    1.67 +	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
    1.68 +	{ MODKEY,			XK_5,		view,		{ .i = 4 } }, \
    1.69 +	{ MODKEY,			XK_6,		view,		{ .i = 5 } }, \
    1.70 +	{ MODKEY,			XK_7,		view,		{ .i = 6 } }, \
    1.71 +	{ MODKEY,			XK_8,		view,		{ .i = 7 } }, \
    1.72 +	{ MODKEY,			XK_9,		view,		{ .i = 8 } }, \
    1.73 +	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
    1.74 +	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
    1.75 +	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
    1.76 +	{ MODKEY|ControlMask,		XK_4,		toggleview,	{ .i = 3 } }, \
    1.77 +	{ MODKEY|ControlMask,		XK_5,		toggleview,	{ .i = 4 } }, \
    1.78 +	{ MODKEY|ControlMask,		XK_6,		toggleview,	{ .i = 5 } }, \
    1.79 +	{ MODKEY|ControlMask,		XK_7,		toggleview,	{ .i = 6 } }, \
    1.80 +	{ MODKEY|ControlMask,		XK_8,		toggleview,	{ .i = 7 } }, \
    1.81 +	{ MODKEY|ControlMask,		XK_9,		toggleview,	{ .i = 8 } }, \
    1.82 +	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    1.83 +};
    1.84 +
    1.85 +/* Query class:instance:title for regex matching info with following command:
    1.86 + * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
    1.87 +#define RULES \
    1.88 +static Rule rule[] = { \
    1.89 +	/* class:instance:title regex	tags regex	isfloat */ \
    1.90 +	{ "Gimp.*",			NULL,		True }, \
    1.91 +	{ "MPlayer.*",			NULL,		True }, \
    1.92 +	{ "Acroread.*",			NULL,		True }, \
    1.93 +};