JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied Gottox bitmask + void *arg patch
[dwm.git] / config.def.h
1 /* See LICENSE file for copyright and license details. */
2
3 /* appearance */
4 #define FONT            "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"
5 #define NORMBORDERCOLOR "#cccccc"
6 #define NORMBGCOLOR     "#cccccc"
7 #define NORMFGCOLOR     "#000000"
8 #define SELBORDERCOLOR  "#0066ff"
9 #define SELBGCOLOR      "#0066ff"
10 #define SELFGCOLOR      "#ffffff"
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 */
15
16 /* tagging */
17 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
18
19 Rule rules[] = {
20         /* class      instance    title       tags ref      isfloating */
21         { "Gimp",     NULL,       NULL,       0,            True },
22         { "Firefox",  NULL,       NULL,       1 << 8,       True },
23 };
24
25 /* layout(s) */
26 double mfact           = 0.55;
27 Bool resizehints       = True;     /* False means respect size hints in tiled resizals */
28
29 Layout layouts[] = {
30         /* symbol     arrange  geom */
31         { "[]=",      tile,    updatetilegeom }, /* first entry is default */
32         { "><>",      NULL,    NULL           }, /* no layout function means floating behavior */
33 };
34
35 /* key definitions */
36 #define MODKEY Mod1Mask
37 Key keys[] = {
38         /* modifier                     key        function        argument */
39         { MODKEY,                       XK_p,      spawn,          (char *)"exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
40         { MODKEY|ShiftMask,             XK_Return, spawn,          (char *)"exec uxterm" },
41         { MODKEY,                       XK_b,      togglebar,      NULL },
42         { MODKEY,                       XK_j,      focusnext,      NULL },
43         { MODKEY,                       XK_k,      focusprev,      NULL },
44         { MODKEY,                       XK_h,      setmfact,       (double[]){+0.05} },
45         { MODKEY,                       XK_l,      setmfact,       (double[]){-0.05} },
46         { MODKEY,                       XK_Return, zoom,           NULL },
47         { MODKEY,                       XK_Tab,    viewprevtag,    NULL },
48         { MODKEY|ShiftMask,             XK_c,      killclient,     NULL },
49         { MODKEY,                       XK_space,  togglelayout,   NULL },
50         { MODKEY|ShiftMask,             XK_space,  togglefloating, NULL },
51         { MODKEY,                       XK_0,      view,           (int[]){ ~0 } },
52         { MODKEY,                       XK_1,      view,           (int[]){ 1 << 0 } },
53         { MODKEY,                       XK_2,      view,           (int[]){ 1 << 1 } },
54         { MODKEY,                       XK_3,      view,           (int[]){ 1 << 2 } },
55         { MODKEY,                       XK_4,      view,           (int[]){ 1 << 3 } },
56         { MODKEY,                       XK_5,      view,           (int[]){ 1 << 4 } },
57         { MODKEY,                       XK_6,      view,           (int[]){ 1 << 5 } },
58         { MODKEY,                       XK_7,      view,           (int[]){ 1 << 6 } },
59         { MODKEY,                       XK_8,      view,           (int[]){ 1 << 7 } },
60         { MODKEY,                       XK_9,      view,           (int[]){ 1 << 8 } },
61         { MODKEY|ControlMask,           XK_1,      toggleview,     (int[]){ 1 << 0 } },
62         { MODKEY|ControlMask,           XK_2,      toggleview,     (int[]){ 1 << 1 } },
63         { MODKEY|ControlMask,           XK_3,      toggleview,     (int[]){ 1 << 2 } },
64         { MODKEY|ControlMask,           XK_4,      toggleview,     (int[]){ 1 << 3 } },
65         { MODKEY|ControlMask,           XK_5,      toggleview,     (int[]){ 1 << 4 } },
66         { MODKEY|ControlMask,           XK_6,      toggleview,     (int[]){ 1 << 5 } },
67         { MODKEY|ControlMask,           XK_7,      toggleview,     (int[]){ 1 << 6 } },
68         { MODKEY|ControlMask,           XK_8,      toggleview,     (int[]){ 1 << 7 } },
69         { MODKEY|ControlMask,           XK_9,      toggleview,     (int[]){ 1 << 8 } },
70         { MODKEY|ShiftMask,             XK_0,      tag,            (int[]){ ~0 } },
71         { MODKEY|ShiftMask,             XK_1,      tag,            (int[]){ 1 << 0 } },
72         { MODKEY|ShiftMask,             XK_2,      tag,            (int[]){ 1 << 1 } },
73         { MODKEY|ShiftMask,             XK_3,      tag,            (int[]){ 1 << 2 } },
74         { MODKEY|ShiftMask,             XK_4,      tag,            (int[]){ 1 << 3 } },
75         { MODKEY|ShiftMask,             XK_5,      tag,            (int[]){ 1 << 4 } },
76         { MODKEY|ShiftMask,             XK_6,      tag,            (int[]){ 1 << 5 } },
77         { MODKEY|ShiftMask,             XK_7,      tag,            (int[]){ 1 << 6 } },
78         { MODKEY|ShiftMask,             XK_8,      tag,            (int[]){ 1 << 7 } },
79         { MODKEY|ShiftMask,             XK_9,      tag,            (int[]){ 1 << 8 } },
80         { MODKEY|ControlMask|ShiftMask, XK_1,      toggletag,      (int[]){ 1 << 0 } },
81         { MODKEY|ControlMask|ShiftMask, XK_2,      toggletag,      (int[]){ 1 << 1 } },
82         { MODKEY|ControlMask|ShiftMask, XK_3,      toggletag,      (int[]){ 1 << 2 } },
83         { MODKEY|ControlMask|ShiftMask, XK_4,      toggletag,      (int[]){ 1 << 3 } },
84         { MODKEY|ControlMask|ShiftMask, XK_5,      toggletag,      (int[]){ 1 << 4 } },
85         { MODKEY|ControlMask|ShiftMask, XK_6,      toggletag,      (int[]){ 1 << 5 } },
86         { MODKEY|ControlMask|ShiftMask, XK_7,      toggletag,      (int[]){ 1 << 6 } },
87         { MODKEY|ControlMask|ShiftMask, XK_8,      toggletag,      (int[]){ 1 << 7 } },
88         { MODKEY|ControlMask|ShiftMask, XK_9,      toggletag,      (int[]){ 1 << 8 } },
89         { MODKEY|ShiftMask,             XK_q,      quit,           NULL },
90 };