diff config.arg.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.arg.h	Sun Mar 22 23:26:35 2009 -0700
     1.3 @@ -0,0 +1,99 @@
     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			"-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*"
    1.11 +#define NORMBORDERCOLOR		"#333"
    1.12 +#define NORMBGCOLOR		"#222"
    1.13 +#define NORMFGCOLOR		"#ccc"
    1.14 +#define SELBORDERCOLOR		"#69c"
    1.15 +#define SELBGCOLOR		"#555"
    1.16 +#define SELFGCOLOR		"#fff"
    1.17 +#define TOPBAR			True		/* False */
    1.18 +
    1.19 +/* behavior */
    1.20 +#define SNAP			40		/* pixel */
    1.21 +#define TAGS \
    1.22 +const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
    1.23 +#define RULES \
    1.24 +static Rule rule[] = { \
    1.25 +	/* class:instance:title regex	tags regex	isversatile */ \
    1.26 +	{ "Firefox",			"3",		False }, \
    1.27 +	{ "Gimp",			NULL,		True }, \
    1.28 +	{ "MPlayer",			NULL,		True }, \
    1.29 +	{ "Acroread",			NULL,		True }, \
    1.30 +};
    1.31 +
    1.32 +/* layout(s) */
    1.33 +#define LAYOUTS \
    1.34 +static Layout layout[] = { \
    1.35 +	/* symbol		function */ \
    1.36 +	{ "[]=",		tile }, /* first entry is default */ \
    1.37 +	{ "><>",		versatile }, \
    1.38 +};
    1.39 +#define MASTER			600		/* per thousand */
    1.40 +#define NMASTER			1		/* clients in master area */
    1.41 +
    1.42 +/* key definitions */
    1.43 +#define MODKEY			Mod1Mask
    1.44 +#define KEYS \
    1.45 +static Key key[] = { \
    1.46 +	/* modifier			key		function	argument */ \
    1.47 +	{ MODKEY|ShiftMask,		XK_Return,	spawn, \
    1.48 +		{ .cmd = "exec uxterm -bg '#222' -fg '#eee' -cr '#eee' +sb -fn '"FONT"'" } }, \
    1.49 +	{ MODKEY,			XK_p,		spawn, \
    1.50 +		{ .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \
    1.51 +			" | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' " \
    1.52 +			"-sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"')\" && exec $exe" } }, \
    1.53 +	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
    1.54 +	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
    1.55 +	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
    1.56 +	{ MODKEY,			XK_g,		resizemaster,	{ .i = 15 } }, \
    1.57 +	{ MODKEY,			XK_s,		resizemaster,	{ .i = -15 } }, \
    1.58 +	{ MODKEY,			XK_i,		incnmaster,	{ .i = 1 } }, \
    1.59 +	{ MODKEY,			XK_d,		incnmaster,	{ .i = -1 } }, \
    1.60 +	{ MODKEY|ShiftMask,		XK_0,		tag,		{ .i = -1 } }, \
    1.61 +	{ MODKEY|ShiftMask,		XK_1,		tag,		{ .i = 0 } }, \
    1.62 +	{ MODKEY|ShiftMask,		XK_2,		tag,		{ .i = 1 } }, \
    1.63 +	{ MODKEY|ShiftMask,		XK_3,		tag,		{ .i = 2 } }, \
    1.64 +	{ MODKEY|ShiftMask,		XK_4,		tag,		{ .i = 3 } }, \
    1.65 +	{ MODKEY|ShiftMask,		XK_5,		tag,		{ .i = 4 } }, \
    1.66 +	{ MODKEY|ShiftMask,		XK_6,		tag,		{ .i = 5 } }, \
    1.67 +	{ MODKEY|ShiftMask,		XK_7,		tag,		{ .i = 6 } }, \
    1.68 +	{ MODKEY|ShiftMask,		XK_8,		tag,		{ .i = 7 } }, \
    1.69 +	{ MODKEY|ShiftMask,		XK_9,		tag,		{ .i = 8 } }, \
    1.70 +	{ MODKEY|ControlMask|ShiftMask,	XK_1,		toggletag,	{ .i = 0 } }, \
    1.71 +	{ MODKEY|ControlMask|ShiftMask,	XK_2,		toggletag,	{ .i = 1 } }, \
    1.72 +	{ MODKEY|ControlMask|ShiftMask,	XK_3,		toggletag,	{ .i = 2 } }, \
    1.73 +	{ MODKEY|ControlMask|ShiftMask,	XK_4,		toggletag,	{ .i = 3 } }, \
    1.74 +	{ MODKEY|ControlMask|ShiftMask,	XK_5,		toggletag,	{ .i = 4 } }, \
    1.75 +	{ MODKEY|ControlMask|ShiftMask,	XK_6,		toggletag,	{ .i = 5 } }, \
    1.76 +	{ MODKEY|ControlMask|ShiftMask,	XK_7,		toggletag,	{ .i = 6 } }, \
    1.77 +	{ MODKEY|ControlMask|ShiftMask,	XK_8,		toggletag,	{ .i = 7 } }, \
    1.78 +	{ MODKEY|ControlMask|ShiftMask,	XK_9,		toggletag,	{ .i = 8 } }, \
    1.79 +	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
    1.80 +	{ MODKEY,			XK_space,	setlayout,	{ .i = -1 } }, \
    1.81 +	{ MODKEY|ShiftMask,		XK_space,	toggleversatile,{ 0 } }, \
    1.82 +	{ MODKEY,			XK_0,		view,		{ .i = -1 } }, \
    1.83 +	{ MODKEY,			XK_1,		view,		{ .i = 0 } }, \
    1.84 +	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
    1.85 +	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
    1.86 +	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
    1.87 +	{ MODKEY,			XK_5,		view,		{ .i = 4 } }, \
    1.88 +	{ MODKEY,			XK_6,		view,		{ .i = 5 } }, \
    1.89 +	{ MODKEY,			XK_7,		view,		{ .i = 6 } }, \
    1.90 +	{ MODKEY,			XK_8,		view,		{ .i = 7 } }, \
    1.91 +	{ MODKEY,			XK_9,		view,		{ .i = 8 } }, \
    1.92 +	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
    1.93 +	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
    1.94 +	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
    1.95 +	{ MODKEY|ControlMask,		XK_4,		toggleview,	{ .i = 3 } }, \
    1.96 +	{ MODKEY|ControlMask,		XK_5,		toggleview,	{ .i = 4 } }, \
    1.97 +	{ MODKEY|ControlMask,		XK_6,		toggleview,	{ .i = 5 } }, \
    1.98 +	{ MODKEY|ControlMask,		XK_7,		toggleview,	{ .i = 6 } }, \
    1.99 +	{ MODKEY|ControlMask,		XK_8,		toggleview,	{ .i = 7 } }, \
   1.100 +	{ MODKEY|ControlMask,		XK_9,		toggleview,	{ .i = 8 } }, \
   1.101 +	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
   1.102 +};