/* See LICENSE file for copyright and license details. */

/* appearance */
#define BARPOS			BarTop	/* BarBot, BarOff */
#define BORDERPX		1
/* #define FONT            	"-*-terminus-*-*-*-*-12-*-*-*-*-*-*-*" */
#define FONT "glisp"

#define NORMBORDERCOLOR		"#1f1f1f"
#define NORMBGCOLOR		"#191919"
#define NORMFGCOLOR		"Grey50"
#define SELBORDERCOLOR		"#2f2f2f"
#define SELBGCOLOR		"#2f2f2f"
#define SELFGCOLOR		"#9fc1cc"

/* my colors - blue */
#if 0
#define NORMBORDERCOLOR     "#cccccc"
#define NORMBGCOLOR     "#222222"
#define NORMFGCOLOR     "#ffffff"
#define SELBORDERCOLOR      "#0066ff"
#define SELBGCOLOR      "#0066ff"
#define SELFGCOLOR      "#ffffff"
#endif

/* my colors - green */
#if 0
#define NORMBORDERCOLOR     "#111111"
#define SELBORDERCOLOR "#aecf96"
#define NORMBGCOLOR     "#2c2c32"
#define NORMFGCOLOR "grey70"
#define SELBGCOLOR      "#80aa83"
#define SELFGCOLOR "#2c2c32"
#endif

/* my colors - yellow */
#if 0
#define NORMBORDERCOLOR     "#111111"
#define SELBORDERCOLOR      "#EEC900"
#define NORMBGCOLOR     "#333333"
#define NORMFGCOLOR     "#BBBBBB"
#define SELBGCOLOR      "#EEC900"
#define SELFGCOLOR      "#000000"
#endif

/* my colors - orange */
#if 0
#define NORMBORDERCOLOR     "#333"
#define NORMBGCOLOR		"#333"
#define NORMFGCOLOR		"#bbb"
#define SELBORDERCOLOR		"#EE883A"
#define SELBGCOLOR		"#EE883A"
#define SELFGCOLOR		"#000"
#endif

/* tagging */
const char      tags[][MAXTAGLEN] = {"work", "pers", "www", "dev", "plan9", "music"};

/*
 * Query class:instance:title for regex matching info with following command:
 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ {
 * printf("%s\n",$2) }'
 */

Bool            seltags[
			LENGTH(tags)] =
{
	[0] = True
};
Rule            rules[] = {
	/* class:instance:title regex	tags regex	isfloating */
	{"Gimp", NULL, True},
	{"MPlayer", NULL, True},
	{"Acroread", NULL, True},
	{"xine", NULL, True},
	{"Firefox", "www", False},
	{"Firefox-bin:.*(Bookmarks|Downloads)", "www", True},
	{"Audacious", "sound", True},
	{"xterm", NULL, False},
	{"xterm-pers", "pers", True},
	{"xterm-work", "work", False},
	{"ncmcp", "sound", False},
	{"xterm-float", NULL, True},
	{"drawterm", "plan9", False},
};
/* layout(s) */
#define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
#define RESIZEHINTS		True
#define SNAP			32	/* snap pixel */
Layout          layouts[] = {
	/* symbol		function */
	{"[]=", tile},		/* first entry is default */
	{"><>", floating},
};

/* key definitions */
#define MODKEY			Mod4Mask
Key             keys[] = {
	/*
	 * modifier			key		function
	 * argument
	 */
	/* launching commands */
	{MODKEY, XK_space, setlayout, NULL},
	{MODKEY, XK_p, spawn, "exe=`dmenu_path | dmenu -sb '#EEC900' -sf '#000000' -nf '#BBBBBB' -nb '#333333' ` && eval \"exec $exe\""},
	{MODKEY, XK_Return, spawn, "exec xterm"},
	{MODKEY | ShiftMask, XK_Return, spawn, "exec xterm -T xterm-work"},
	{MODKEY | ShiftMask, XK_i, spawn, "exec termstart"},
	{MODKEY | ShiftMask, XK_m, spawn, "exec xterm -T xterm-work -exec 'ssh -t mail screen -x'"},
	{MODKEY | ShiftMask, XK_p, spawn, "exec xterm -T xterm-pers -class PXTerm"},
	{MODKEY | ShiftMask, XK_l, spawn, "exec xterm -T xterm-pers -class PXTerm -geometry 80x55"},
	{MODKEY | ControlMask, XK_f, spawn, "exec firefox"},
	{MODKEY | ControlMask, XK_l, spawn, "exec xscreensaver-command -lock"},
	{MODKEY | ControlMask, XK_k, spawn, "exec kelton"},
	{MODKEY | ControlMask, XK_Return, spawn, "exec xterm -T xterm-float"},
	{MODKEY | ControlMask | ShiftMask, XK_Return, spawn, "exec xterm -T xterm-float -geometry 80x50"},
	/* window operations */
	{MODKEY, XK_b, togglebar, NULL},
	{MODKEY, XK_Tab, viewprevtag, NULL},
	{MODKEY, XK_j, focusnext, NULL},
	{MODKEY, XK_k, focusprev, NULL},
	{MODKEY, XK_h, setmwfact, "-0.05"},
	{MODKEY, XK_l, setmwfact, "+0.05"},
	{MODKEY, XK_m, togglemax, NULL},
	{MODKEY, XK_z, zoom, NULL},
	{MODKEY | ShiftMask, XK_space, togglefloating, NULL},
	{MODKEY | ShiftMask, XK_c, killclient, NULL},
	/* views */
	{MODKEY, XK_0, view, NULL},
	{MODKEY, XK_1, view, tags[0]},
	{MODKEY, XK_2, view, tags[1]},
	{MODKEY, XK_3, view, tags[2]},
	{MODKEY, XK_4, view, tags[3]},
	{MODKEY, XK_5, view, tags[4]},
	{MODKEY, XK_q, view, tags[5]},
	{MODKEY, XK_w, view, tags[6]},
	{MODKEY, XK_e, view, tags[7]},
	{MODKEY, XK_r, view, tags[8]},
	{MODKEY | ControlMask, XK_1, toggleview, tags[0]},
	{MODKEY | ControlMask, XK_2, toggleview, tags[1]},
	{MODKEY | ControlMask, XK_3, toggleview, tags[2]},
	{MODKEY | ControlMask, XK_4, toggleview, tags[3]},
	{MODKEY | ControlMask, XK_5, toggleview, tags[4]},
	{MODKEY | ControlMask, XK_q, toggleview, tags[5]},
	{MODKEY | ControlMask, XK_w, toggleview, tags[6]},
	{MODKEY | ControlMask, XK_e, toggleview, tags[7]},
	{MODKEY | ControlMask, XK_r, toggleview, tags[8]},
	{MODKEY | ShiftMask, XK_0, tag, NULL},
	{MODKEY | ShiftMask, XK_1, tag, tags[0]},
	{MODKEY | ShiftMask, XK_2, tag, tags[1]},
	{MODKEY | ShiftMask, XK_3, tag, tags[2]},
	{MODKEY | ShiftMask, XK_4, tag, tags[3]},
	{MODKEY | ShiftMask, XK_5, tag, tags[4]},
	{MODKEY | ShiftMask, XK_q, tag, tags[5]},
	{MODKEY | ShiftMask, XK_w, tag, tags[6]},
	{MODKEY | ShiftMask, XK_e, tag, tags[7]},
	{MODKEY | ShiftMask, XK_r, tag, tags[8]},
	{MODKEY | ControlMask | ShiftMask, XK_1, toggletag, tags[0]},
	{MODKEY | ControlMask | ShiftMask, XK_2, toggletag, tags[1]},
	{MODKEY | ControlMask | ShiftMask, XK_3, toggletag, tags[2]},
	{MODKEY | ControlMask | ShiftMask, XK_4, toggletag, tags[3]},
	{MODKEY | ControlMask | ShiftMask, XK_5, toggletag, tags[4]},
	{MODKEY | ControlMask | ShiftMask, XK_q, toggletag, tags[5]},
	{MODKEY | ControlMask | ShiftMask, XK_w, toggletag, tags[6]},
	{MODKEY | ControlMask | ShiftMask, XK_e, toggletag, tags[7]},
	{MODKEY | ControlMask | ShiftMask, XK_r, toggletag, tags[8]},
	{MODKEY | ShiftMask, XK_q, quit, NULL}
};

