aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h120
1 files changed, 120 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..785ca10
--- /dev/null
+++ b/config.h
@@ -0,0 +1,120 @@
1static const unsigned int borderpx = 0; /* border pixel of windows */
2static const unsigned int snap = 32; /* snap pixel */
3static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
4static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */
5static const unsigned int systrayspacing = 2; /* systray spacing */
6static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
7static const int showsystray = 1; /* 0 means no systray */
8static const unsigned int gappih = 10; /* horiz inner gap between windows */
9static const unsigned int gappiv = 10; /* vert inner gap between windows */
10static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
11static const unsigned int gappov = 10; /* vert outer gap between windows and screen edge */
12static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
13static const int swallowfloating = 1; /* 1 means no outer gap when there is only one window */
14static const int showbar = 0; /* 0 means no bar */
15static const int topbar = 1; /* 0 means bottom bar */
16static const char *fonts[] = { "monospace:size=10" };
17static const char dmenufont[] = "monospace:size=10";
18static const char col_gray1[] = "#222222";
19static const char col_gray2[] = "#444444";
20static const char col_gray3[] = "#bbbbbb";
21static const char col_gray4[] = "#eeeeee";
22static const char col_cyan[] = "#005577";
23static const char norm_fg[] = "#bfbfbf";
24static const char norm_bg[] = "#000001";
25static const char norm_border[] = "#3f3f40";
26
27static const char sel_fg[] = "#bfbfbf";
28static const char sel_bg[] = "#5A4A63";
29static const char sel_border[] = "#bfbfbf";
30
31static const char urg_fg[] = "#bfbfbf";
32static const char urg_bg[] = "#501C61";
33static const char urg_border[] = "#501C61";
34
35static const char *colors[][3] = {
36 /* fg bg border */
37 [SchemeNorm] = { norm_fg, norm_bg, norm_border }, // unfocused wins
38 [SchemeSel] = { sel_fg, sel_bg, sel_border }, // the focused win
39};
40
41/* tagging */
42static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
43
44static const Rule rules[] = {
45/* class instance title tags mask isfloating isterminal noswallow monitor */
46 { "St", NULL, NULL, 0, 0, 1, 0, -1 },
47 { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
48};
49
50/* layout(s) */
51static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
52static const int nmaster = 1; /* number of clients in master area */
53static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */
54static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
55
56static const Layout layouts[] = {
57 /* symbol arrange function */
58 { "[]=", tile }, /* first entry is default */
59 { "><>", NULL }, /* no layout function means floating behavior */
60 { "[M]", monocle },
61};
62
63/* key definitions */
64#define MODKEY Mod4Mask
65#define TAGKEYS(KEY,TAG) \
66 { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
67 { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
68 { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
69 { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
70
71/* helper for spawning shell commands in the pre dwm-5.0 fashion */
72#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
73
74/* commands */
75static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
76//static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", norm_bg, "-nf", norm_fg, "-sb", sel_bg, "-sf", sel_fg, NULL };
77static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL};
78static const char *termcmd[] = { "st", NULL };
79
80static const Key keys[] = {
81 /* modifier key function argument */
82 { MODKEY, XK_d, spawn, {.v = dmenucmd } },
83 { MODKEY, XK_Return, spawn, {.v = termcmd } },
84 { MODKEY, XK_b, togglebar, {0} },
85 { MODKEY, XK_q, killclient, {0} },
86 { MODKEY, XK_f, togglefullscr, {0} },
87 { MODKEY, XK_space, setlayout, {0} },
88 { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
89 TAGKEYS( XK_1, 0)
90 TAGKEYS( XK_2, 1)
91 TAGKEYS( XK_3, 2)
92 TAGKEYS( XK_4, 3)
93 TAGKEYS( XK_5, 4)
94 TAGKEYS( XK_6, 5)
95 TAGKEYS( XK_7, 6)
96 TAGKEYS( XK_8, 7)
97 TAGKEYS( XK_9, 8)
98 { MODKEY|ShiftMask, XK_q, quit, {0} },
99};
100
101/* button definitions */
102/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
103static const Button buttons[] = {
104 /* click event mask button function argument */
105 { ClkLtSymbol, 0, Button1, setlayout, {0} },
106 { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
107
108 { ClkTagBar, MODKEY, Button1, tag, {0} },
109 { ClkTagBar, MODKEY, Button3, toggletag, {0} },
110 { ClkWinTitle, 0, Button2, zoom, {0} },
111 { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
112 { ClkClientWin, MODKEY, Button1, movemouse, {0} },
113 { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
114 { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
115 { ClkTagBar, 0, Button1, view, {0} },
116 { ClkTagBar, 0, Button3, toggleview, {0} },
117 { ClkTagBar, MODKEY, Button1, tag, {0} },
118 { ClkTagBar, MODKEY, Button3, toggletag, {0} },
119};
120