config.default.h
changeset 798 2c42d9e7f79c
parent 788 a61fcdf7b4c1
child 813 0ed770c96e51
equal deleted inserted replaced
797:eab37ce56b8e 798:2c42d9e7f79c
     1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
     1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
     2  * See LICENSE file for license details.
     2  * See LICENSE file for license details.
     3  */
     3  */
     4 
     4 
       
     5 /* appearance */
     5 #define BORDERPX		1
     6 #define BORDERPX		1
     6 #define FONT			"-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
     7 #define FONT			"-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
     7 #define NORMBORDERCOLOR		"#dddddd"
     8 #define NORMBORDERCOLOR		"#dddddd"
     8 #define NORMBGCOLOR		"#eeeeee"
     9 #define NORMBGCOLOR		"#eeeeee"
     9 #define NORMFGCOLOR		"#222222"
    10 #define NORMFGCOLOR		"#222222"
    10 #define SELBORDERCOLOR		"#ff0000"
    11 #define SELBORDERCOLOR		"#ff0000"
    11 #define SELBGCOLOR		"#006699"
    12 #define SELBGCOLOR		"#006699"
    12 #define SELFGCOLOR		"#ffffff"
    13 #define SELFGCOLOR		"#ffffff"
    13 
       
    14 #define MASTER			600		/* per thousand */
       
    15 #define MODKEY			Mod1Mask
       
    16 #define NMASTER			1		/* clients in master area */
       
    17 #define SNAP			20		/* pixel */
       
    18 #define TOPBAR			True		/* False */
    14 #define TOPBAR			True		/* False */
    19 
    15 
       
    16 /* behavior */
       
    17 #define SNAP			20		/* pixel */
    20 #define TAGS \
    18 #define TAGS \
    21 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
    19 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
       
    20 /* Query class:instance:title for regex matching info with following command:
       
    21  * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
       
    22 #define RULES \
       
    23 static Rule rule[] = { \
       
    24 	/* class:instance:title regex	tags regex	isversatile */ \
       
    25 	{ "Gimp",			NULL,		True }, \
       
    26 	{ "MPlayer",			NULL,		True }, \
       
    27 	{ "Acroread",			NULL,		True }, \
       
    28 };
    22 
    29 
       
    30 /* layout(s) */
    23 #define LAYOUTS \
    31 #define LAYOUTS \
    24 Layout layout[] = { \
    32 static Layout layout[] = { \
    25 	/* symbol		function */ \
    33 	/* symbol		function */ \
    26 	{ "[]=",		tile }, /* first entry is default */ \
    34 	{ "[]=",		tile }, /* first entry is default */ \
    27 	{ "><>",		versatile }, \
    35 	{ "><>",		versatile }, \
    28 };
    36 };
       
    37 #define MASTER			600		/* per thousand */
       
    38 #define NMASTER			1		/* clients in master area */
    29 
    39 
       
    40 /* key definitions */
       
    41 #define MODKEY			Mod1Mask
    30 #define KEYS \
    42 #define KEYS \
    31 static Key key[] = { \
    43 static Key key[] = { \
    32 	/* modifier			key		function	argument */ \
    44 	/* modifier			key		function	argument */ \
    33 	{ MODKEY|ShiftMask,		XK_Return,	spawn,		{ .cmd = "exec xterm" } }, \
    45 	{ MODKEY|ShiftMask,		XK_Return,	spawn,		{ .cmd = "exec xterm" } }, \
    34 	{ MODKEY,			XK_Tab,		focusnext,	{ 0 } }, \
    46 	{ MODKEY,			XK_Tab,		focusnext,	{ 0 } }, \
    79 	{ MODKEY|ControlMask,		XK_7,		toggleview,	{ .i = 6 } }, \
    91 	{ MODKEY|ControlMask,		XK_7,		toggleview,	{ .i = 6 } }, \
    80 	{ MODKEY|ControlMask,		XK_8,		toggleview,	{ .i = 7 } }, \
    92 	{ MODKEY|ControlMask,		XK_8,		toggleview,	{ .i = 7 } }, \
    81 	{ MODKEY|ControlMask,		XK_9,		toggleview,	{ .i = 8 } }, \
    93 	{ MODKEY|ControlMask,		XK_9,		toggleview,	{ .i = 8 } }, \
    82 	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    94 	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    83 };
    95 };
    84 
       
    85 /* Query class:instance:title for regex matching info with following command:
       
    86  * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
       
    87 #define RULES \
       
    88 static Rule rule[] = { \
       
    89 	/* class:instance:title regex	tags regex	isversatile */ \
       
    90 	{ "Gimp",			NULL,		True }, \
       
    91 	{ "MPlayer",			NULL,		True }, \
       
    92 	{ "Acroread",			NULL,		True }, \
       
    93 };