JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
allow for vstack
[dwm.git] / config.def.h
1 /* See LICENSE file for copyright and license details. */
2
3 /* appearance */
4 #define BORDERPX                1
5 #define FONT                    "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"
6 #define NORMBORDERCOLOR         "#cccccc"
7 #define NORMBGCOLOR             "#cccccc"
8 #define NORMFGCOLOR             "#000000"
9 #define SELBORDERCOLOR          "#0066ff"
10 #define SELBGCOLOR              "#0066ff"
11 #define SELFGCOLOR              "#ffffff"
12
13 /* bar position */
14 #define BX sx
15 #define BY sy
16 #define BW MW
17
18 /* window area */
19 #define WX 0
20 #define WY bh
21 #define WW sw
22 #define WH sh
23
24 /* master area */
25 #define MX sx
26 #define MY sy + bh
27 #define MW ((int)(((float)sw) * 0.6))
28 #define MH sh - bh
29
30 /* tile area, might be on a different screen */
31 #define TX sx + MW
32 #define TY sy
33 #define TW sw - MW
34 #define TH sh
35
36 /* monocle area, might be restricted to a specific screen */
37 #define MOX sx
38 #define MOY MY
39 #define MOW sw
40 #define MOH MH
41
42 /* tagging */
43 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
44
45 Rule rules[] = {
46         /* class:instance:title substr  tags ref        isfloating */
47         { "Firefox",                    tags[8],        False },
48         { "Gimp",                       NULL,           True },
49         { "MPlayer",                    NULL,           True },
50         { "Acroread",                   NULL,           True },
51 };
52
53 /* layout(s) */
54 #define RESIZEHINTS             True    /* False - respect size hints in tiled resizals */
55 #define SNAP                    32      /* snap pixel */
56
57 Layout layouts[] = {
58         /* symbol               function */
59         { "[]=",                tile }, /* first entry is default */
60         { "><>",                floating },
61         { "[M]",                monocle },
62 };
63
64 /* key definitions */
65 #define MODKEY                  Mod1Mask
66 Key keys[] = {
67         /* modifier                     key             function        argument */
68 #if ANSELM_OFFICE
69         { MODKEY,                       XK_p,           spawn,
70                 "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"' -x 0 -y 0 -w 1280" },
71 #else
72         { MODKEY,                       XK_p,           spawn,
73                 "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
74 #endif
75         { MODKEY|ShiftMask,             XK_Return,      spawn, "exec uxterm" },
76         { MODKEY,                       XK_j,           focusnext,      NULL },
77         { MODKEY,                       XK_k,           focusprev,      NULL },
78         { MODKEY,                       XK_r,           reapply,        NULL },
79         { MODKEY,                       XK_Return,      zoom,           NULL },
80         { MODKEY,                       XK_Tab,         viewprevtag,    NULL },
81         { MODKEY,                       XK_m,           setlayout,      "[M]" },
82         { MODKEY,                       XK_f,           setlayout,      "><>" },
83         { MODKEY,                       XK_t,           setlayout,      "[]=" },
84         { MODKEY|ShiftMask,             XK_space,       togglefloating, NULL },
85         { MODKEY|ShiftMask,             XK_c,           killclient,     NULL },
86         { MODKEY,                       XK_0,           view,           NULL },
87         { MODKEY,                       XK_1,           view,           tags[0] },
88         { MODKEY,                       XK_2,           view,           tags[1] },
89         { MODKEY,                       XK_3,           view,           tags[2] },
90         { MODKEY,                       XK_4,           view,           tags[3] },
91         { MODKEY,                       XK_5,           view,           tags[4] },
92         { MODKEY,                       XK_6,           view,           tags[5] },
93         { MODKEY,                       XK_7,           view,           tags[6] },
94         { MODKEY,                       XK_8,           view,           tags[7] },
95         { MODKEY,                       XK_9,           view,           tags[8] },
96         { MODKEY|ControlMask,           XK_1,           toggleview,     tags[0] },
97         { MODKEY|ControlMask,           XK_2,           toggleview,     tags[1] },
98         { MODKEY|ControlMask,           XK_3,           toggleview,     tags[2] },
99         { MODKEY|ControlMask,           XK_4,           toggleview,     tags[3] },
100         { MODKEY|ControlMask,           XK_5,           toggleview,     tags[4] },
101         { MODKEY|ControlMask,           XK_6,           toggleview,     tags[5] },
102         { MODKEY|ControlMask,           XK_7,           toggleview,     tags[6] },
103         { MODKEY|ControlMask,           XK_8,           toggleview,     tags[7] },
104         { MODKEY|ControlMask,           XK_9,           toggleview,     tags[8] },
105         { MODKEY|ShiftMask,             XK_0,           tag,            NULL },
106         { MODKEY|ShiftMask,             XK_1,           tag,            tags[0] },
107         { MODKEY|ShiftMask,             XK_2,           tag,            tags[1] },
108         { MODKEY|ShiftMask,             XK_3,           tag,            tags[2] },
109         { MODKEY|ShiftMask,             XK_4,           tag,            tags[3] },
110         { MODKEY|ShiftMask,             XK_5,           tag,            tags[4] },
111         { MODKEY|ShiftMask,             XK_6,           tag,            tags[5] },
112         { MODKEY|ShiftMask,             XK_7,           tag,            tags[6] },
113         { MODKEY|ShiftMask,             XK_8,           tag,            tags[7] },
114         { MODKEY|ShiftMask,             XK_9,           tag,            tags[8] },
115         { MODKEY|ControlMask|ShiftMask, XK_1,           toggletag,      tags[0] },
116         { MODKEY|ControlMask|ShiftMask, XK_2,           toggletag,      tags[1] },
117         { MODKEY|ControlMask|ShiftMask, XK_3,           toggletag,      tags[2] },
118         { MODKEY|ControlMask|ShiftMask, XK_4,           toggletag,      tags[3] },
119         { MODKEY|ControlMask|ShiftMask, XK_5,           toggletag,      tags[4] },
120         { MODKEY|ControlMask|ShiftMask, XK_6,           toggletag,      tags[5] },
121         { MODKEY|ControlMask|ShiftMask, XK_7,           toggletag,      tags[6] },
122         { MODKEY|ControlMask|ShiftMask, XK_8,           toggletag,      tags[7] },
123         { MODKEY|ControlMask|ShiftMask, XK_9,           toggletag,      tags[8] },
124         { MODKEY|ShiftMask,             XK_q,           quit,           NULL },
125 };