config.default.h
changeset 958 8b502be8b8e0
parent 956 484245788760
child 959 0aeefb841608
equal deleted inserted replaced
957:e61ca30d9474 958:8b502be8b8e0
    15 #define TAGS \
    15 #define TAGS \
    16 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
    16 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:
    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) }' */
    18  * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
    19 #define RULES \
    19 #define RULES \
    20 static Rule rule[] = { \
    20 static Rule rules[] = { \
    21 	/* class:instance:title regex	tags regex	isfloating */ \
    21 	/* class:instance:title regex	tags regex	isfloating */ \
    22 	{ "Gimp",			NULL,		True }, \
    22 	{ "Gimp",			NULL,		True }, \
    23 	{ "MPlayer",			NULL,		True }, \
    23 	{ "MPlayer",			NULL,		True }, \
    24 	{ "Acroread",			NULL,		True }, \
    24 	{ "Acroread",			NULL,		True }, \
    25 };
    25 };
    26 
    26 
    27 /* layout(s) */
    27 /* layout(s) */
    28 #include "tile.h"
    28 #include "tile.h"
    29 #define LAYOUTS \
    29 #define LAYOUTS \
    30 static Layout layout[] = { \
    30 static Layout layouts[] = { \
    31 	/* symbol		function */ \
    31 	/* symbol		function */ \
    32 	{ "[]=",		tile }, /* first entry is default */ \
    32 	{ "[]=",		tile }, /* first entry is default */ \
    33 	{ "><>",		floating }, \
    33 	{ "><>",		floating }, \
    34 };
    34 };
    35 #define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
    35 #define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
    36 #define SNAP			32	/* snap pixel */
    36 #define SNAP			32	/* snap pixel */
    37 
    37 
    38 /* key definitions */
    38 /* key definitions */
    39 #define MODKEY			Mod1Mask
    39 #define MODKEY			Mod1Mask
    40 #define KEYS \
    40 #define KEYS \
    41 Key key[] = { \
    41 Key keys[] = { \
    42 	/* modifier			key		function	argument */ \
    42 	/* modifier			key		function	argument */ \
    43 	{ MODKEY|ShiftMask,		XK_Return,	spawn,		"exec xterm" }, \
    43 	{ MODKEY|ShiftMask,		XK_Return,	spawn,		"exec xterm" }, \
    44 	{ MODKEY,			XK_p,		spawn, 		"exe=`dmenu_path | dmenu` && exec $exe" }, \
    44 	{ MODKEY,			XK_p,		spawn, 		"exe=`dmenu_path | dmenu` && exec $exe" }, \
    45 	{ MODKEY,			XK_space,	setlayout,	NULL }, \
    45 	{ MODKEY,			XK_space,	setlayout,	NULL }, \
    46 	{ MODKEY,			XK_b,		togglebar,	NULL }, \
    46 	{ MODKEY,			XK_b,		togglebar,	NULL }, \