config.default.h
changeset 984 57dd38ea27ba
parent 979 1f295ac327ef
equal deleted inserted replaced
983:e986f1a399a6 984:57dd38ea27ba
     1 /* See LICENSE file for copyright and license details. */
     1 /* See LICENSE file for copyright and license details. */
     2 
     2 
     3 /* appearance */
     3 /* appearance */
     4 #define BARPOS			BarTop /* BarBot, BarOff */
     4 #define BARPOS			BarTop /* BarBot, BarOff */
     5 #define BORDERPX		1
     5 #define BORDERPX		1
     6 #define FONT			"-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
     6 #define FONT			"-*-terminus-medium-r-*-*-12-*-*-*-*-*-iso10646-*"
     7 #define NORMBORDERCOLOR		"#dddddd"
     7 #define DARK /* LIGHT */
     8 #define NORMBGCOLOR		"#eeeeee"
     8 #ifdef DARK
     9 #define NORMFGCOLOR		"#222222"
     9 #define NORMBORDERCOLOR		"#222"
    10 #define SELBORDERCOLOR		"#ff0000"
    10 #define NORMBGCOLOR		"#000"
    11 #define SELBGCOLOR		"#006699"
    11 #define NORMFGCOLOR		"#eee"
    12 #define SELFGCOLOR		"#ffffff"
    12 #define SELBORDERCOLOR		"#09f"
       
    13 #else
       
    14 #define NORMBORDERCOLOR		"#666"
       
    15 #define NORMBGCOLOR		"#eee"
       
    16 #define NORMFGCOLOR		"#222"
       
    17 #define SELBORDERCOLOR		"#f00"
       
    18 #endif
       
    19 #define SELBGCOLOR		"#369"
       
    20 #define SELFGCOLOR		"#fff"
    13 
    21 
    14 /* tagging */
    22 /* tagging */
    15 #define TAGS \
    23 #define TAGS \
    16 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
    24 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
    17 /* Query class:instance:title for regex matching info with following command:
       
    18  * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
       
    19 #define RULES \
    25 #define RULES \
    20 static Rule rules[] = { \
    26 static Rule rules[] = { \
    21 	/* class:instance:title regex	tags regex	isfloating */ \
    27 	/* class:instance:title regex	tags regex	isfloating */ \
       
    28 	{ "Firefox",			"3",		False }, \
    22 	{ "Gimp",			NULL,		True }, \
    29 	{ "Gimp",			NULL,		True }, \
    23 	{ "MPlayer",			NULL,		True }, \
    30 	{ "MPlayer",			NULL,		True }, \
    24 	{ "Acroread",			NULL,		True }, \
    31 	{ "Acroread",			NULL,		True }, \
    25 };
    32 };
    26 
    33 
    30 static Layout layouts[] = { \
    37 static Layout layouts[] = { \
    31 	/* symbol		function */ \
    38 	/* symbol		function */ \
    32 	{ "[]=",		tile }, /* first entry is default */ \
    39 	{ "[]=",		tile }, /* first entry is default */ \
    33 	{ "><>",		floating }, \
    40 	{ "><>",		floating }, \
    34 };
    41 };
    35 #define RESIZEHINTS		False	/* True - respect size hints in tiled resizals */
    42 #define RESIZEHINTS		True	/* False - respect size hints in tiled resizals */
    36 #define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
    43 #define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
    37 #define SNAP			32	/* snap pixel */
    44 #define SNAP			32	/* snap pixel */
    38 
    45 
    39 /* key definitions */
    46 /* key definitions */
    40 #define MODKEY			Mod1Mask
    47 #define MODKEY			Mod1Mask
    41 #define KEYS \
    48 #define KEYS \
    42 Key keys[] = { \
    49 Key keys[] = { \
    43 	/* modifier			key		function	argument */ \
    50 	/* modifier			key		function	argument */ \
    44 	{ MODKEY|ShiftMask,		XK_Return,	spawn,		"exec xterm" }, \
    51 	{ MODKEY,			XK_p,		spawn, \
    45 	{ MODKEY,			XK_p,		spawn, 		"exe=`dmenu_path | dmenu` && exec $exe" }, \
    52 		"exe=`dmenu_path | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"'" \
       
    53 		" -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'` && exec $exe" }, \
       
    54 	{ MODKEY|ShiftMask,		XK_Return,	spawn, \
       
    55 		"exec xterm -bg '"NORMBGCOLOR"' -fg '"NORMFGCOLOR"' -cr '"NORMFGCOLOR"' +sb -fn '"FONT"'" }, \
    46 	{ MODKEY,			XK_space,	setlayout,	NULL }, \
    56 	{ MODKEY,			XK_space,	setlayout,	NULL }, \
    47 	{ MODKEY,			XK_b,		togglebar,	NULL }, \
    57 	{ MODKEY,			XK_b,		togglebar,	NULL }, \
    48 	{ MODKEY,			XK_j,		focusnext,	NULL }, \
    58 	{ MODKEY,			XK_j,		focusnext,	NULL }, \
    49 	{ MODKEY,			XK_k,		focusprev,	NULL }, \
    59 	{ MODKEY,			XK_k,		focusprev,	NULL }, \
    50 	{ MODKEY,			XK_h,		setmwfact,	"-0.05" }, \
    60 	{ MODKEY,			XK_h,		setmwfact,	"-0.05" }, \