aewl

diff config.arg.h @ 146:f328ce9c558c

centralized/externalized configuration to config.h
author arg@10ksloc.org
date Tue, 01 Aug 2006 13:59:13 +0200
parents
children a94577c9de73
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config.arg.h	Tue Aug 01 13:59:13 2006 +0200
     1.3 @@ -0,0 +1,76 @@
     1.4 +/*
     1.5 + * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
     1.6 + * See LICENSE file for license details.
     1.7 + */
     1.8 +
     1.9 +#define FONT			"-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
    1.10 +#define BGCOLOR			"#0a2c2d"
    1.11 +#define FGCOLOR			"#ddeeee"
    1.12 +#define BORDERCOLOR		"#176164"
    1.13 +#define MODKEY			Mod1Mask
    1.14 +#define NUMLOCKMASK		Mod2Mask
    1.15 +#define MASTERW			52 /* percent */
    1.16 +#define WM_PROTOCOL_DELWIN	1
    1.17 +
    1.18 +enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast };
    1.19 +#define TAGS \
    1.20 +char *tags[TLast] = { \
    1.21 +	[Tfnord] = "fnord", \
    1.22 +	[Tdev] = "dev", \
    1.23 +	[Tnet] = "net", \
    1.24 +	[Twork] = "work", \
    1.25 +	[Tmisc] = "misc", \
    1.26 +};
    1.27 +#define DEFTAG Tdev
    1.28 +
    1.29 +
    1.30 +#define CMDS \
    1.31 +	const char *browse[] = { "firefox", NULL }; \
    1.32 +	const char *gimp[] = { "gimp", NULL }; \
    1.33 +	const char *term[] = { \
    1.34 +		"urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", \
    1.35 +		"-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL \
    1.36 +	}; \
    1.37 +	const char *xlock[] = { "xlock", NULL };
    1.38 +
    1.39 +#define KEYS \
    1.40 +static Key key[] = { \
    1.41 +	/* modifier		key		function	arguments */ \
    1.42 +	{ MODKEY,		XK_0,		view,		{ .i = Tfnord } }, \
    1.43 +	{ MODKEY,		XK_1,		view,		{ .i = Tdev } }, \
    1.44 +	{ MODKEY,		XK_2,		view,		{ .i = Tnet } }, \
    1.45 +	{ MODKEY,		XK_3,		view,		{ .i = Twork } }, \
    1.46 +	{ MODKEY,		XK_4,		view,		{ .i = Tmisc} }, \
    1.47 +	{ MODKEY,		XK_h,		viewprev,	{ 0 } }, \
    1.48 +	{ MODKEY,		XK_j,		focusnext,	{ 0 } }, \
    1.49 +	{ MODKEY,		XK_k,		focusprev,	{ 0 } }, \
    1.50 +	{ MODKEY,		XK_l,		viewnext,	{ 0 } }, \
    1.51 +	{ MODKEY,		XK_m,		togglemax,	{ 0 } }, \
    1.52 +	{ MODKEY,		XK_space,	togglemode,	{ 0 } }, \
    1.53 +	{ MODKEY,		XK_Return,	zoom,		{ 0 } }, \
    1.54 +	{ MODKEY|ControlMask,	XK_0,		appendtag,	{ .i = Tfnord } }, \
    1.55 +	{ MODKEY|ControlMask,	XK_1,		appendtag,	{ .i = Tdev } }, \
    1.56 +	{ MODKEY|ControlMask,	XK_2,		appendtag,	{ .i = Tnet } }, \
    1.57 +	{ MODKEY|ControlMask,	XK_3,		appendtag,	{ .i = Twork } }, \
    1.58 +	{ MODKEY|ControlMask,	XK_4,		appendtag,	{ .i = Tmisc } }, \
    1.59 +	{ MODKEY|ShiftMask,	XK_0,		replacetag,	{ .i = Tfnord } }, \
    1.60 +	{ MODKEY|ShiftMask,	XK_1,		replacetag,	{ .i = Tdev } }, \
    1.61 +	{ MODKEY|ShiftMask,	XK_2,		replacetag,	{ .i = Tnet } }, \
    1.62 +	{ MODKEY|ShiftMask,	XK_3,		replacetag,	{ .i = Twork } }, \
    1.63 +	{ MODKEY|ShiftMask,	XK_4,		replacetag,	{ .i = Tmisc } }, \
    1.64 +	{ MODKEY|ShiftMask,	XK_c,		killclient,	{ 0 } }, \
    1.65 +	{ MODKEY|ShiftMask,	XK_q,		quit,		{ 0 } }, \
    1.66 +	{ MODKEY|ShiftMask,	XK_Return,	spawn,		{ .argv = term } }, \
    1.67 +	{ MODKEY|ShiftMask,	XK_g,		spawn,		{ .argv = gimp } }, \
    1.68 +	{ MODKEY|ShiftMask,	XK_l,		spawn,		{ .argv = xlock } }, \
    1.69 +	{ MODKEY|ShiftMask,	XK_w,		spawn,		{ .argv = browse } }, \
    1.70 +};
    1.71 +
    1.72 +#define RULES \
    1.73 +static Rule rule[] = { \
    1.74 +	/* class:instance	tags				isfloat */ \
    1.75 +	{ "Firefox.*",		{ [Tnet] = "net" },		False }, \
    1.76 +	{ "Gimp.*",		{ 0 },				True}, \
    1.77 +};
    1.78 +
    1.79 +#define ARRANGE dotile