config.anselm.h
changeset 1147 def76530f636
parent 1141 fa19c918d250
equal deleted inserted replaced
1146:29b0911adab8 1147:def76530f636
    12 
    12 
    13 /* tagging */
    13 /* tagging */
    14 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    14 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    15 
    15 
    16 Rule rules[] = {
    16 Rule rules[] = {
    17 	/* class:instance:title substr	tags ref	isfloating */
    17 	/* class	instance	title		tags ref	isfloating */
    18 	{ "Firefox",			tags[8],	False },
    18 	{ NULL,		NULL,		"Firefox",	tags[8],	False },
    19 	{ "Gimp",			NULL,		True },
    19 	{ NULL,		NULL,		"Gimp",		NULL,		True },
    20 	{ "MPlayer",			NULL,		True },
    20 	{ NULL,		NULL,		"MPlayer",	NULL,		True },
    21 	{ "Acroread",			NULL,		True },
    21 	{ NULL,		NULL,		"Acroread",	NULL,		True },
    22 };
    22 };
    23 
    23 
    24 /* layout(s) */
    24 /* geometry function */
    25 #define RESIZEHINTS		True	/* False - respect size hints in tiled resizals */
    25 void (*setgeoms)(void) = setdefgeoms;
    26 #define SNAP			32	/* snap pixel */
       
    27 
       
    28 Layout layouts[] = {
       
    29 	/* symbol		function	isfloating */
       
    30 	{ "[]|",		tileh,		False }, /* first entry is default */
       
    31 	{ "[]=",		tilev,		False },
       
    32 	{ "><>",		floating,	True },
       
    33 	{ "[M]",		monocle,	True },
       
    34 };
       
    35 
    26 
    36 void
    27 void
    37 setanselmgeoms(void) {
    28 setanselmgeoms(void) {
    38 
    29 
    39 	/* screen dimensions */
    30 	/* screen dimensions */
    81 	setlayout("[]|");
    72 	setlayout("[]|");
    82 }
    73 }
    83 
    74 
    84 void
    75 void
    85 defgeoms(const char *arg) {
    76 defgeoms(const char *arg) {
    86 	setgeoms = setdefaultgeoms;
    77 	setgeoms = setdefgeoms;
    87 	setgeoms();
    78 	setgeoms();
    88 	updatebarpos();
    79 	updatebarpos();
    89 	setlayout("[]=");
    80 	setlayout("[]=");
    90 }
    81 }
       
    82 
       
    83 /* layout(s) */
       
    84 #define RESIZEHINTS		True	/* False - respect size hints in tiled resizals */
       
    85 #define SNAP			32	/* snap pixel */
       
    86 
       
    87 Layout layouts[] = {
       
    88 	/* symbol		function	isfloating */
       
    89 	{ "[]|",		tileh,		False }, /* first entry is default */
       
    90 	{ "[]=",		tilev,		False },
       
    91 	{ "><>",		floating,	True },
       
    92 	{ "[M]",		monocle,	True },
       
    93 };
    91 
    94 
    92 /* key definitions */
    95 /* key definitions */
    93 #define MODKEY			Mod1Mask
    96 #define MODKEY			Mod1Mask
    94 Key keys[] = {
    97 Key keys[] = {
    95 	/* modifier			key		function	argument */
    98 	/* modifier			key		function	argument */