Reformat README as markdown
[dwm-win32.git] / config.def.h
blob4f21cf81be21ca57180905f17c02819bf0eebb4f
1 /* See LICENSE file for copyright and license details. */
3 /* appearance, colors are specified in the form 0x00bbggrr or with the RGB(r, g, b) macro */
4 #define normbordercolor 0x00cccccc
5 #define normbgcolor 0x00cccccc
6 #define normfgcolor 0x00000000
7 #define selbordercolor 0x00ff6600
8 #define selbgcolor 0x00ff6600
9 #define selfgcolor 0x00ffffff
11 static const unsigned int borderpx = 2; /* border pixel of windows */
12 static const unsigned int textmargin = 5; /* margin for the text displayed on the bar */
13 static bool showbar = true; /* false means no bar */
14 static bool topbar = true; /* false means bottom bar */
16 /* tagging */
17 static const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
18 static unsigned int tagset[] = {1, 1}; /* after start, first tag is selected */
20 static Rule rules[] = {
21 /* class title tags mask isfloating */
22 { "MozillaUIWindowClass", "- Mozilla Firefox", 1 << 8, false },
25 /* layout(s) */
26 static float mfact = 0.55; /* factor of master area size [0.05..0.95] */
28 static Layout layouts[] = {
29 /* symbol arrange function */
30 { "[]=", tile }, /* first entry is default */
31 { "><>", NULL }, /* no layout function means floating behavior */
32 { "[M]", monocle },
35 /* key definitions */
36 #define MODKEY (MOD_CONTROL | MOD_ALT)
37 #define TAGKEYS(KEY,TAG) \
38 { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
39 { MODKEY|MOD_CONTROL, KEY, toggleview, {.ui = 1 << TAG} }, \
40 { MODKEY|MOD_SHIFT, KEY, tag, {.ui = 1 << TAG} }, \
41 { MODKEY|MOD_CONTROL|MOD_SHIFT, KEY, toggletag, {.ui = 1 << TAG} },
43 /* helper for spawning shell commands in the pre dwm-5.0 fashion */
44 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
46 /* commands */
47 static const char *termcmd[] = { "cmd.exe", NULL };
49 static Key keys[] = {
50 /* modifier key function argument */
51 { MODKEY|MOD_SHIFT, VK_RETURN, spawn, {.v = termcmd } },
52 { MODKEY, 'B', togglebar, {0} },
53 { MODKEY, 'J', focusstack, {.i = +1 } },
54 { MODKEY, 'K', focusstack, {.i = -1 } },
55 { MODKEY, 'H', setmfact, {.f = -0.05} },
56 { MODKEY, 'L', setmfact, {.f = +0.05} },
57 { MODKEY, 'I', showclientclassname, {0} },
58 { MODKEY, VK_RETURN, zoom, {0} },
59 { MODKEY, VK_TAB, view, {0} },
60 { MODKEY|MOD_SHIFT, 'C', killclient, {0} },
61 { MODKEY, 'T', setlayout, {.v = &layouts[0]} },
62 { MODKEY, 'F', setlayout, {.v = &layouts[1]} },
63 { MODKEY, 'M', setlayout, {.v = &layouts[2]} },
64 { MODKEY, VK_SPACE, setlayout, {0} },
65 { MODKEY|MOD_SHIFT, VK_SPACE, togglefloating, {0} },
66 { MODKEY, 'N', toggleborder, {0} },
67 { MODKEY, 'E', toggleexplorer, {0} },
68 { MODKEY, '0', view, {.ui = ~0 } },
69 { MODKEY|MOD_SHIFT, '0', tag, {.ui = ~0 } },
70 TAGKEYS( '1', 0)
71 TAGKEYS( '2', 1)
72 TAGKEYS( '3', 2)
73 TAGKEYS( '4', 3)
74 TAGKEYS( '5', 4)
75 TAGKEYS( '6', 5)
76 TAGKEYS( '7', 6)
77 TAGKEYS( '8', 7)
78 TAGKEYS( '9', 8)
79 { MODKEY, 'Q', quit, {0} },
83 /* button definitions */
84 /* click can be a tag number (starting at 0), ClkLtSymbol, ClkStatusText or ClkWinTitle */
85 static Button buttons[] = {
86 /* click button event type modifier keys function argument */
87 { ClkLtSymbol, WM_LBUTTONDOWN, 0, setlayout, {0} },
88 { ClkLtSymbol, WM_RBUTTONDOWN, 0, setlayout, {.v = &layouts[2]} },
89 { ClkWinTitle, WM_MBUTTONDOWN, 0, zoom, {0} },
90 { ClkStatusText, WM_MBUTTONDOWN, 0, spawn, {.v = termcmd } },
91 #if 0
92 { ClkClientWin, WM_MBUTTONDOWN, MODKEY, togglefloating, {0} },
93 #endif
94 { ClkTagBar, WM_LBUTTONDOWN, VK_MENU, tag, {0} },
95 { ClkTagBar, WM_RBUTTONDOWN, VK_MENU, toggletag, {0} },
96 { ClkTagBar, WM_LBUTTONDOWN, 0, view, {0} },
97 { ClkTagBar, WM_RBUTTONDOWN, 0, toggleview, {0} },