PKN laptop config
[config.git] / suckless / dwm / config.def.h
1 /* See LICENSE file for copyright and license details. */
2
3 /* appearance */
4 static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
5 static const char normbordercolor[] = "#444444";
6 static const char normbgcolor[] = "#222222";
7 static const char normfgcolor[] = "#bbbbbb";
8 static const char selbordercolor[] = "#005577";
9 static const char selbgcolor[] = "#005577";
10 static const char selfgcolor[] = "#eeeeee";
11 static const unsigned int borderpx = 1; /* border pixel of windows */
12 static const unsigned int snap = 32; /* snap pixel */
13 static const unsigned int systrayspacing = 2; /* systray spacing */
14 static const Bool showsystray = True; /* False means no systray */
15 static const Bool showbar = True; /* False means no bar */
16 static const Bool topbar = True; /* False means bottom bar */
17
18 /* tagging */
19 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
20
21 static const Rule rules[] = {
22 /* xprop(1):
23 * WM_CLASS(STRING) = instance, class
24 * WM_NAME(STRING) = title
25 */
26 /* class instance title tags mask isfloating monitor */
27 { "Thunderbird", NULL, NULL, 0, False, 1 },
28 { "Gajim", NULL, NULL, 1 << 1, False, 1 },
29 };
30
31 /* layout(s) */
32 static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
33 static const int nmaster = 1; /* number of clients in master area */
34 static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
35
36 static const Layout layouts[] = {
37 /* symbol arrange function */
38 { "[]=", tile }, /* first entry is default */
39 { "><>", NULL }, /* no layout function means floating behavior */
40 { "[M]", monocle },
41 };
42
43 /* key definitions */
44 #define MODKEY Mod4Mask
45 #define TAGKEYS(KEY,TAG) \
46 { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
47 { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
48 { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
49 { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
50
51 /* helper for spawning shell commands in the pre dwm-5.0 fashion */
52 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
53
54 /* commands */
55 static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
56 static const char *termcmd[] = { "rxvt-unicode", NULL };
57 static const char *browsercmd[] = { "firefox", NULL };
58 static const char *projectcmd[] = { "launchProjectVim.sh", NULL };
59 static const char *lockcmd[] = { "slock", NULL };
60 static const char *filecmd[] = { "pcmanfm", NULL };
61
62 static Key keys[] = {
63 /* modifier key function argument */
64 { MODKEY, XK_p, spawn, {.v = dmenucmd } },
65 { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
66 { MODKEY|ShiftMask, XK_e, spawn, {.v = browsercmd } },
67 { MODKEY|ShiftMask, XK_f, spawn, {.v = filecmd } },
68 { MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } },
69 { MODKEY, XK_v, spawn, {.v = projectcmd } },
70 { MODKEY, XK_b, togglebar, {0} },
71 { MODKEY, XK_j, focusstack, {.i = +1 } },
72 { MODKEY, XK_k, focusstack, {.i = -1 } },
73 { MODKEY, XK_i, incnmaster, {.i = +1 } },
74 { MODKEY, XK_d, incnmaster, {.i = -1 } },
75 { MODKEY, XK_h, setmfact, {.f = -0.05} },
76 { MODKEY, XK_l, setmfact, {.f = +0.05} },
77 { MODKEY, XK_Return, zoom, {0} },
78 { MODKEY, XK_Tab, view, {0} },
79 { MODKEY|ShiftMask, XK_c, killclient, {0} },
80 { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
81 { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
82 { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
83 { MODKEY, XK_space, setlayout, {0} },
84 { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
85 { MODKEY, XK_agrave, view, {.ui = ~0 } },
86 { MODKEY|ShiftMask, XK_agrave, tag, {.ui = ~0 } },
87 { MODKEY, XK_comma, focusmon, {.i = -1 } },
88 { MODKEY, XK_semicolon, focusmon, {.i = +1 } },
89 { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
90 { MODKEY|ShiftMask, XK_semicolon, tagmon, {.i = +1 } },
91 TAGKEYS( XK_ampersand, 0)
92 TAGKEYS( XK_eacute, 1)
93 TAGKEYS( XK_quotedbl, 2)
94 TAGKEYS( XK_apostrophe, 3)
95 TAGKEYS( XK_parenleft, 4)
96 TAGKEYS( XK_minus, 5)
97 TAGKEYS( XK_egrave, 6)
98 TAGKEYS( XK_underscore, 7)
99 TAGKEYS( XK_ccedilla, 8)
100 { MODKEY|ShiftMask, XK_q, quit, {0} },
101 };
102
103 /* button definitions */
104 /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
105 static Button buttons[] = {
106 /* click event mask button function argument */
107 { ClkLtSymbol, 0, Button1, setlayout, {0} },
108 { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
109 { ClkWinTitle, 0, Button2, zoom, {0} },
110 { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
111 { ClkClientWin, MODKEY, Button1, movemouse, {0} },
112 { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
113 { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
114 { ClkTagBar, 0, Button1, view, {0} },
115 { ClkTagBar, 0, Button3, toggleview, {0} },
116 { ClkTagBar, MODKEY, Button1, tag, {0} },
117 { ClkTagBar, MODKEY, Button3, toggletag, {0} },
118 };