cleaned up and commented the config.*.h f196b71e
Anselm R. Garbe · 2007-02-21 11:30 3 file(s) · +35 −31
config.arg.h +16 −14
2 2
 * See LICENSE file for license details.
3 3
 */
4 4
5 +
/* appearance */
5 6
#define BORDERPX		1
6 7
#define FONT			"-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*"
7 8
#define NORMBORDERCOLOR		"#333"
10 11
#define SELBORDERCOLOR		"#69c"
11 12
#define SELBGCOLOR		"#555"
12 13
#define SELFGCOLOR		"#fff"
14 +
#define TOPBAR			True		/* False */
13 15
14 -
#define MASTER			600		/* per thousand */
15 -
#define MODKEY			Mod1Mask
16 -
#define NMASTER			1		/* clients in master area */
16 +
/* behavior */
17 17
#define SNAP			40		/* pixel */
18 -
#define TOPBAR			True		/* False */
19 -
20 18
#define TAGS \
21 19
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
20 +
#define RULES \
21 +
static Rule rule[] = { \
22 +
	/* class:instance:title regex	tags regex	isversatile */ \
23 +
	{ "Firefox",			"3",		False }, \
24 +
	{ "Gimp",			NULL,		True }, \
25 +
	{ "MPlayer",			NULL,		True }, \
26 +
	{ "Acroread",			NULL,		True }, \
27 +
};
22 28
29 +
/* layout(s) */
23 30
#define LAYOUTS \
24 31
static Layout layout[] = { \
25 32
	/* symbol		function */ \
26 33
	{ "[]=",		tile }, /* first entry is default */ \
27 34
	{ "><>",		versatile }, \
28 35
};
36 +
#define MASTER			600		/* per thousand */
37 +
#define NMASTER			1		/* clients in master area */
29 38
39 +
/* key definitions */
40 +
#define MODKEY			Mod1Mask
30 41
#define KEYS \
31 42
static Key key[] = { \
32 43
	/* modifier			key		function	argument */ \
86 97
	{ MODKEY|ControlMask,		XK_9,		toggleview,	{ .i = 8 } }, \
87 98
	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
88 99
};
89 -
90 -
#define RULES \
91 -
static Rule rule[] = { \
92 -
	/* class:instance:title regex	tags regex	isversatile */ \
93 -
	{ "Firefox",			"3",		False }, \
94 -
	{ "Gimp",			NULL,		True }, \
95 -
	{ "MPlayer",			NULL,		True }, \
96 -
	{ "Acroread",			NULL,		True }, \
97 -
};
config.default.h +18 −16
2 2
 * See LICENSE file for license details.
3 3
 */
4 4
5 +
/* appearance */
5 6
#define BORDERPX		1
6 7
#define FONT			"-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
7 8
#define NORMBORDERCOLOR		"#dddddd"
10 11
#define SELBORDERCOLOR		"#ff0000"
11 12
#define SELBGCOLOR		"#006699"
12 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 14
#define TOPBAR			True		/* False */
19 15
16 +
/* behavior */
17 +
#define SNAP			20		/* pixel */
20 18
#define TAGS \
21 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 31
#define LAYOUTS \
24 -
Layout layout[] = { \
32 +
static Layout layout[] = { \
25 33
	/* symbol		function */ \
26 34
	{ "[]=",		tile }, /* first entry is default */ \
27 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 42
#define KEYS \
31 43
static Key key[] = { \
32 44
	/* modifier			key		function	argument */ \
81 93
	{ MODKEY|ControlMask,		XK_9,		toggleview,	{ .i = 8 } }, \
82 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 -
};
config.mk +1 −1
1 1
# dwm version
2 -
VERSION = 3.6
2 +
VERSION = 3.7
3 3
4 4
# Customize below to fit your system
5 5