config.def.h
changeset 1209 c2dc0bd92158
parent 1207 055bf865d22f
child 1220 6603d83d133d
equal deleted inserted replaced
1208:fab49062da0a 1209:c2dc0bd92158
     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 BORDERPX        1
       
     5 #define FONT            "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"
     4 #define FONT            "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"
     6 #define NORMBORDERCOLOR "#cccccc"
     5 #define NORMBORDERCOLOR "#cccccc"
     7 #define NORMBGCOLOR     "#cccccc"
     6 #define NORMBGCOLOR     "#cccccc"
     8 #define NORMFGCOLOR     "#000000"
     7 #define NORMFGCOLOR     "#000000"
     9 #define SELBORDERCOLOR  "#0066ff"
     8 #define SELBORDERCOLOR  "#0066ff"
    10 #define SELBGCOLOR      "#0066ff"
     9 #define SELBGCOLOR      "#0066ff"
    11 #define SELFGCOLOR      "#ffffff"
    10 #define SELFGCOLOR      "#ffffff"
    12 #define SNAP            32    /* snap pixel */
    11 unsigned int borderpx  = 1;        /* border pixel of windows */
       
    12 unsigned int snap      = 32;       /* snap pixel */
       
    13 Bool showbar           = True;     /* False means no bar */
       
    14 Bool topbar            = True;     /* False means bottom bar */
    13 
    15 
    14 /* tagging */
    16 /* tagging */
    15 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    17 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    16 
    18 
    17 Rule rules[] = {
    19 Rule rules[] = {
    18 	/* class      instance    title       tags ref      isfloating */
    20 	/* class      instance    title       tags ref      isfloating */
    19 	{ "Gimp",     NULL,       NULL,       NULL,         True },
    21 	{ "Gimp",     NULL,       NULL,       NULL,         True },
    20 };
    22 };
    21 
    23 
    22 /* layout(s) */
    24 /* layout(s) */
    23 #define RESIZEHINTS True  /* False - respect size hints in tiled resizals */
    25 double mfact           = 0.55;
    24 #define MFACT       0.55  /* master factor [0.1 .. 0.9] */
    26 Bool resizehints       = True;     /* False means respect size hints in tiled resizals */
       
    27 
    25 #include "tile.c"
    28 #include "tile.c"
       
    29 
    26 Layout layouts[] = {
    30 Layout layouts[] = {
    27 	/* symbol     arrange  geom */
    31 	/* symbol     arrange  geom */
    28 	{ "[]=",      tile,    updatetilegeom }, /* first entry is default */
    32 	{ "[]=",      tile,    updatetilegeom }, /* first entry is default */
    29 	{ "><>",      NULL,                   }, /* no layout function means floating behavior */
    33 	{ "><>",      NULL,                   }, /* no layout function means floating behavior */
    30 };
    34 };
    33 #define MODKEY Mod1Mask
    37 #define MODKEY Mod1Mask
    34 Key keys[] = {
    38 Key keys[] = {
    35 	/* modifier                     key        function        argument */
    39 	/* modifier                     key        function        argument */
    36 	{ MODKEY,                       XK_p,      spawn,          "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
    40 	{ MODKEY,                       XK_p,      spawn,          "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
    37 	{ MODKEY|ShiftMask,             XK_Return, spawn,          "exec uxterm" },
    41 	{ MODKEY|ShiftMask,             XK_Return, spawn,          "exec uxterm" },
       
    42 	{ MODKEY,                       XK_b,      togglebar,      NULL },
    38 	{ MODKEY,                       XK_j,      focusnext,      NULL },
    43 	{ MODKEY,                       XK_j,      focusnext,      NULL },
    39 	{ MODKEY,                       XK_k,      focusprev,      NULL },
    44 	{ MODKEY,                       XK_k,      focusprev,      NULL },
    40 	{ MODKEY,                       XK_h,      setmfact,       "-0.05" },
    45 	{ MODKEY,                       XK_h,      setmfact,       "-0.05" },
    41 	{ MODKEY,                       XK_l,      setmfact,       "+0.05" },
    46 	{ MODKEY,                       XK_l,      setmfact,       "+0.05" },
    42 	{ MODKEY,                       XK_Return, zoom,           NULL },
    47 	{ MODKEY,                       XK_Return, zoom,           NULL },