aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorphilw <dscr@duck.com>2024-02-10 19:59:34 +0100
committerphilw <dscr@duck.com>2024-02-10 19:59:34 +0100
commit2807bbc931a63fddef7c099054b665a5ce71bee4 (patch)
treee949c87ab23f6f94aed0e7421d7a914cac6c6e0d /config.def.h
downloaddwm-2807bbc931a63fddef7c099054b665a5ce71bee4.tar.gz
dwm-2807bbc931a63fddef7c099054b665a5ce71bee4.zip
Update colorscheme
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h140
1 files changed, 140 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
new file mode 100644
index 0000000..b8e202d
--- /dev/null
+++ b/config.def.h
@@ -0,0 +1,140 @@
1/* See LICENSE file for copyright and license details. */
2
3/* appearance */
4static const unsigned int borderpx = 1; /* border pixel of windows */
5static const unsigned int snap = 32; /* snap pixel */
6static const unsigned int gappih = 10; /* horiz inner gap between windows */
7static const unsigned int gappiv = 10; /* vert inner gap between windows */
8static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
9static const unsigned int gappov = 10; /* vert outer gap between windows and screen edge */
10static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
11static const int showbar = 1; /* 0 means no bar */
12static const int topbar = 1; /* 0 means bottom bar */
13static const char *fonts[] = { "monospace:size=10" };
14static const char dmenufont[] = "monospace:size=10";
15static const char col_gray1[] = "#222222";
16static const char col_gray2[] = "#444444";
17static const char col_gray3[] = "#bbbbbb";
18static const char col_gray4[] = "#eeeeee";
19static const char col_cyan[] = "#005577";
20static const char *colors[][3] = {
21 /* fg bg border */
22 [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
23 [SchemeSel] = { col_gray4, col_cyan, col_cyan },
24};
25
26/* tagging */
27static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
28
29static const Rule rules[] = {
30 /* xprop(1):
31 * WM_CLASS(STRING) = instance, class
32 * WM_NAME(STRING) = title
33 */
34 /* class instance title tags mask isfloating isterminal noswallow monitor */
35 { "Gimp", NULL, NULL, 0, 1, 0, 0, -1 },
36 { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1, -1 },
37 { "St", NULL, NULL, 0, 0, 1, 0, -1 },
38 { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
39};
40
41/* layout(s) */
42static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
43static const int nmaster = 1; /* number of clients in master area */
44static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
45static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
46
47static const Layout layouts[] = {
48 /* symbol arrange function */
49 { "[]=", tile }, /* first entry is default */
50 { "><>", NULL }, /* no layout function means floating behavior */
51 { "[M]", monocle },
52};
53
54/* key definitions */
55#define MODKEY Mod1Mask
56#define TAGKEYS(KEY,TAG) \
57 { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
58 { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
59 { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
60 { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
61
62/* helper for spawning shell commands in the pre dwm-5.0 fashion */
63#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
64
65/* commands */
66static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
67static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
68static const char *termcmd[] = { "st", NULL };
69
70static const Key keys[] = {
71 /* modifier key function argument */
72 { MODKEY, XK_p, spawn, {.v = dmenucmd } },
73 { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
74 { MODKEY, XK_b, togglebar, {0} },
75 { MODKEY, XK_j, focusstack, {.i = +1 } },
76 { MODKEY, XK_k, focusstack, {.i = -1 } },
77 { MODKEY, XK_i, incnmaster, {.i = +1 } },
78 { MODKEY, XK_d, incnmaster, {.i = -1 } },
79 { MODKEY, XK_h, setmfact, {.f = -0.05} },
80 { MODKEY, XK_l, setmfact, {.f = +0.05} },
81 { MODKEY|Mod4Mask, XK_h, incrgaps, {.i = +1 } },
82 { MODKEY|Mod4Mask, XK_l, incrgaps, {.i = -1 } },
83 { MODKEY|Mod4Mask|ShiftMask, XK_h, incrogaps, {.i = +1 } },
84 { MODKEY|Mod4Mask|ShiftMask, XK_l, incrogaps, {.i = -1 } },
85 { MODKEY|Mod4Mask|ControlMask, XK_h, incrigaps, {.i = +1 } },
86 { MODKEY|Mod4Mask|ControlMask, XK_l, incrigaps, {.i = -1 } },
87 { MODKEY|Mod4Mask, XK_0, togglegaps, {0} },
88 { MODKEY|Mod4Mask|ShiftMask, XK_0, defaultgaps, {0} },
89 { MODKEY, XK_y, incrihgaps, {.i = +1 } },
90 { MODKEY, XK_o, incrihgaps, {.i = -1 } },
91 { MODKEY|ControlMask, XK_y, incrivgaps, {.i = +1 } },
92 { MODKEY|ControlMask, XK_o, incrivgaps, {.i = -1 } },
93 { MODKEY|Mod4Mask, XK_y, incrohgaps, {.i = +1 } },
94 { MODKEY|Mod4Mask, XK_o, incrohgaps, {.i = -1 } },
95 { MODKEY|ShiftMask, XK_y, incrovgaps, {.i = +1 } },
96 { MODKEY|ShiftMask, XK_o, incrovgaps, {.i = -1 } },
97 { MODKEY, XK_Return, zoom, {0} },
98 { MODKEY, XK_Tab, view, {0} },
99 { MODKEY|ShiftMask, XK_c, killclient, {0} },
100 { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
101 { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
102 { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
103 { MODKEY, XK_space, setlayout, {0} },
104 { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
105 { MODKEY|ShiftMask, XK_f, togglefullscr, {0} },
106 { MODKEY, XK_0, view, {.ui = ~0 } },
107 { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
108 { MODKEY, XK_comma, focusmon, {.i = -1 } },
109 { MODKEY, XK_period, focusmon, {.i = +1 } },
110 { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
111 { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
112 TAGKEYS( XK_1, 0)
113 TAGKEYS( XK_2, 1)
114 TAGKEYS( XK_3, 2)
115 TAGKEYS( XK_4, 3)
116 TAGKEYS( XK_5, 4)
117 TAGKEYS( XK_6, 5)
118 TAGKEYS( XK_7, 6)
119 TAGKEYS( XK_8, 7)
120 TAGKEYS( XK_9, 8)
121 { MODKEY|ShiftMask, XK_q, quit, {0} },
122};
123
124/* button definitions */
125/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
126static const Button buttons[] = {
127 /* click event mask button function argument */
128 { ClkTagBar, MODKEY, Button1, tag, {0} },
129 { ClkTagBar, MODKEY, Button3, toggletag, {0} },
130 { ClkWinTitle, 0, Button2, zoom, {0} },
131 { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
132 { ClkClientWin, MODKEY, Button1, movemouse, {0} },
133 { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
134 { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
135 { ClkTagBar, 0, Button1, view, {0} },
136 { ClkTagBar, 0, Button3, toggleview, {0} },
137 { ClkTagBar, MODKEY, Button1, tag, {0} },
138 { ClkTagBar, MODKEY, Button3, toggletag, {0} },
139};
140