diff config.h @ 0:7024076fa948

initial add
author paulo@localhost
date Sun, 22 Mar 2009 23:26:35 -0700
parents
children ba504f41828f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config.h	Sun Mar 22 23:26:35 2009 -0700
     1.3 @@ -0,0 +1,131 @@
     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			"6x9"
    1.11 +#define NORMBORDERCOLOR		"#aaaaaa"
    1.12 +#define NORMBGCOLOR		"#222222"
    1.13 +#define NORMFGCOLOR		"#eeeeee"
    1.14 +#define SELBORDERCOLOR		"#ff0000"
    1.15 +#define SELBGCOLOR		"#222222"
    1.16 +#define SELFGCOLOR		"#00ff00"
    1.17 +#define TOPBAR			True		/* False */
    1.18 +
    1.19 +/* behavior */
    1.20 +#define SNAP			10		/* pixel */
    1.21 +#define TAGS \
    1.22 +const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", 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,		False }, \
    1.29 +	{ "MPlayer",			NULL,		False }, \
    1.30 +	{ "Acroread",			NULL,		False }, \
    1.31 +};
    1.32 +
    1.33 +/* layout(s) */
    1.34 +#define LAYOUTS \
    1.35 +static Layout layout[] = { \
    1.36 +	/* symbol		function */ \
    1.37 +	{ " ",		versatile }, \
    1.38 +	{ "@",		spiral }, \
    1.39 +	{ "&",		spiral_h }, \
    1.40 +	{ "X",		monocle }, \
    1.41 +	{ "#",		grid }, \
    1.42 +	{ "U",		bstack }, \
    1.43 +	{ "!",		tile }, \
    1.44 +	/*{ "\\",		cascade },*/ \
    1.45 +	/* first entry is default */ \
    1.46 +};
    1.47 +#define MASTER			650		/* per thousand */
    1.48 +#define NMASTER			1		/* clients in master area */
    1.49 +
    1.50 +/* key definitions */
    1.51 +#define MODKEY			Mod4Mask
    1.52 +#define KEYS \
    1.53 +static Key key[] = { \
    1.54 +	/* modifier			key		function	argument */ \
    1.55 +	{ MODKEY|ShiftMask,		XK_Return,	spawn,		{ .cmd = "/home/paulo/bin/myterm.sh" } }, \
    1.56 +	{ MODKEY,			XK_backslash,	spawn,		{ .cmd = "/home/paulo/bin/myterm.sh -e /home/paulo/bin/viclip.sh" } }, \
    1.57 +	{ MODKEY,			XK_n,		pushdown,	{ 0 } }, \
    1.58 +	{ MODKEY,			XK_p,		pushup,	{ 0 } }, \
    1.59 +	{ MODKEY,			XK_Tab,		focusnext,	{ 0 } }, \
    1.60 +	{ MODKEY|ShiftMask,		XK_Tab,		focusprev,	{ 0 } }, \
    1.61 +	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
    1.62 +	{ MODKEY,			XK_g,		resizemaster,	{ .i = 15 } }, \
    1.63 +	{ MODKEY,			XK_s,		resizemaster,	{ .i = -15 } }, \
    1.64 +	{ MODKEY,			XK_i,		incnmaster,	{ .i = 1 } }, \
    1.65 +	{ MODKEY,			XK_d,		incnmaster,	{ .i = -1 } }, \
    1.66 +	{ MODKEY|ShiftMask,		XK_grave,		tag,		{ .i = -1 } }, \
    1.67 +	{ MODKEY|ShiftMask,		XK_1,		tag,		{ .i = 0 } }, \
    1.68 +	{ MODKEY|ShiftMask,		XK_2,		tag,		{ .i = 1 } }, \
    1.69 +	{ MODKEY|ShiftMask,		XK_3,		tag,		{ .i = 2 } }, \
    1.70 +	{ MODKEY|ShiftMask,		XK_4,		tag,		{ .i = 3 } }, \
    1.71 +	{ MODKEY|ShiftMask,		XK_5,		tag,		{ .i = 4 } }, \
    1.72 +	{ MODKEY|ShiftMask,		XK_6,		tag,		{ .i = 5 } }, \
    1.73 +	{ MODKEY|ShiftMask,		XK_7,		tag,		{ .i = 6 } }, \
    1.74 +	{ MODKEY|ShiftMask,		XK_8,		tag,		{ .i = 7 } }, \
    1.75 +	{ MODKEY|ShiftMask,		XK_9,		tag,		{ .i = 8 } }, \
    1.76 +	{ MODKEY|ShiftMask,		XK_0,		tag,		{ .i = 9 } }, \
    1.77 +	{ MODKEY|ControlMask|ShiftMask,	XK_1,		toggletag,	{ .i = 0 } }, \
    1.78 +	{ MODKEY|ControlMask|ShiftMask,	XK_2,		toggletag,	{ .i = 1 } }, \
    1.79 +	{ MODKEY|ControlMask|ShiftMask,	XK_3,		toggletag,	{ .i = 2 } }, \
    1.80 +	{ MODKEY|ControlMask|ShiftMask,	XK_4,		toggletag,	{ .i = 3 } }, \
    1.81 +	{ MODKEY|ControlMask|ShiftMask,	XK_5,		toggletag,	{ .i = 4 } }, \
    1.82 +	{ MODKEY|ControlMask|ShiftMask,	XK_6,		toggletag,	{ .i = 5 } }, \
    1.83 +	{ MODKEY|ControlMask|ShiftMask,	XK_7,		toggletag,	{ .i = 6 } }, \
    1.84 +	{ MODKEY|ControlMask|ShiftMask,	XK_8,		toggletag,	{ .i = 7 } }, \
    1.85 +	{ MODKEY|ControlMask|ShiftMask,	XK_9,		toggletag,	{ .i = 8 } }, \
    1.86 +	{ MODKEY|ControlMask|ShiftMask,	XK_0,		toggletag,	{ .i = 9 } }, \
    1.87 +	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
    1.88 +	{ MODKEY,			XK_space,	setlayout,	{ .i = -1 } }, \
    1.89 +	{ MODKEY,			XK_F1,	setlayout,	{ .i = 0 } }, \
    1.90 +	{ MODKEY,			XK_F2,	setlayout,	{ .i = 1 } }, \
    1.91 +	{ MODKEY,			XK_F3,	setlayout,	{ .i = 2 } }, \
    1.92 +	{ MODKEY,			XK_F4,	setlayout,	{ .i = 3 } }, \
    1.93 +	{ MODKEY,			XK_F5,	setlayout,	{ .i = 4 } }, \
    1.94 +	{ MODKEY,			XK_F6,	setlayout,	{ .i = 5 } }, \
    1.95 +	{ MODKEY,			XK_F7,	setlayout,	{ .i = 6 } }, \
    1.96 +	{ MODKEY|ShiftMask,		XK_space,	toggleversatile,{ 0 } }, \
    1.97 +	{ MODKEY,			XK_grave,		view,		{ .i = -1 } }, \
    1.98 +	{ MODKEY,			XK_1,		view,		{ .i = 0 } }, \
    1.99 +	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
   1.100 +	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
   1.101 +	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
   1.102 +	{ MODKEY,			XK_5,		view,		{ .i = 4 } }, \
   1.103 +	{ MODKEY,			XK_6,		view,		{ .i = 5 } }, \
   1.104 +	{ MODKEY,			XK_7,		view,		{ .i = 6 } }, \
   1.105 +	{ MODKEY,			XK_8,		view,		{ .i = 7 } }, \
   1.106 +	{ MODKEY,			XK_9,		view,		{ .i = 8 } }, \
   1.107 +	{ MODKEY,			XK_0,		view,		{ .i = 9 } }, \
   1.108 +	{ MODKEY,			XK_BackSpace,		last_view,		{ 0 } }, \
   1.109 +	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
   1.110 +	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
   1.111 +	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
   1.112 +	{ MODKEY|ControlMask,		XK_4,		toggleview,	{ .i = 3 } }, \
   1.113 +	{ MODKEY|ControlMask,		XK_5,		toggleview,	{ .i = 4 } }, \
   1.114 +	{ MODKEY|ControlMask,		XK_6,		toggleview,	{ .i = 5 } }, \
   1.115 +	{ MODKEY|ControlMask,		XK_7,		toggleview,	{ .i = 6 } }, \
   1.116 +	{ MODKEY|ControlMask,		XK_8,		toggleview,	{ .i = 7 } }, \
   1.117 +	{ MODKEY|ControlMask,		XK_9,		toggleview,	{ .i = 8 } }, \
   1.118 +	{ MODKEY|ControlMask,		XK_0,		toggleview,	{ .i = 9 } }, \
   1.119 +	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
   1.120 +	{ MODKEY,		XK_h,		moveresize,		"-25x 0y 0w 0h" }, \
   1.121 +	{ MODKEY,		XK_l,		moveresize,		"25x 0y 0w 0h" }, \
   1.122 +	{ MODKEY,		XK_j,		moveresize,		"0x 25y 0w 0h" }, \
   1.123 +	{ MODKEY,		XK_k,		moveresize,		"0x -25y 0w 0h" }, \
   1.124 +	{ MODKEY|ControlMask,		XK_h,		moveresize,		"0X 0y 0w 0h" }, \
   1.125 +	{ MODKEY|ControlMask,		XK_l,		moveresize,		"9000X 0y 0w 0h" }, \
   1.126 +	{ MODKEY|ControlMask,		XK_j,		moveresize,		"0x 9000Y 0w 0h" }, \
   1.127 +	{ MODKEY|ControlMask,		XK_k,		moveresize,		"0x 15Y 0w 0h" }, \
   1.128 +	{ MODKEY|ShiftMask,		XK_h,		moveresize,		"0x 0y -25w 0h" }, \
   1.129 +	{ MODKEY|ShiftMask,		XK_l,		moveresize,		"0x 0y 25w 0h" }, \
   1.130 +	{ MODKEY|ShiftMask,		XK_j,		moveresize,		"0x 0y 0w 25h" }, \
   1.131 +	{ MODKEY|ShiftMask,		XK_k,		moveresize,		"0x 0y 0w -25h" }, \
   1.132 +};
   1.133 +
   1.134 +#define MAX_TASKS		10		/* max number of apps in taskbar */