forked from instantOS/instantWM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.def.h
481 lines (422 loc) · 24.3 KB
/
config.def.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
/* See LICENSE file for copyright and license details. */
#include <X11/XF86keysym.h>
/* appearance */
static const unsigned int borderpx = 3; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const unsigned int startmenusize = 30; /* snap pixel */
static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
static const unsigned int systrayspacing = 0; /* systray spacing */
static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
static const int showsystray = 1; /* 0 means no systray */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = {"Cantarell-Regular:size=12", "Fira Code Nerd Font:size=12"};
static int barheight;
static char xresourcesfont[30];
// empty background
static char col_background[] = "#292f3a"; /* top bar dark background*/
// fonts
static char col_white[] = "#ffffff";/*white for fonts*/
// border active and inactive
static char col_pastel_blue[] = "#747c90";/*unsaturated for focused border*/
static char col_light_blue[] = "#4dadd4";/*focused windows d */
// blue window indicator
static char col_blue[] = "#5294E2";/*focused instantmenu or topbar d */
static char col_dark_blue[] = "#3579CB";/*focused instantmenu or topbar d */
// hover over blue window indicator
static char col_hover_blue[] = "#7CA8DC";/*focused instantmenu or topbar d */
static char col_hover_dark_blue[] = "#578BC9";/*focused instantmenu or topbar d */
// sticky window indicator
static char col_green[] = "#52E167";/*focused instantmenu or topbar d */
static char col_dark_green[] = "#35CB4B";/*focused instantmenu or topbar d */
// unfocused sticky indicator
static char col_orange[] = "#E1A052";/*focused instantmenu or topbar d */
static char col_dark_orange[] = "#CB8735";/*focused instantmenu or topbar d */
// close button
static char col_red[] = "#E1527E";/*focused instantmenu or topbar d */
static char col_dark_red[] = "#CB3563";/*focused instantmenu or topbar d */
// hover over close button
static char col_hover_red[] = "#D37492";/*focused instantmenu or topbar d */
static char col_hover_dark_red[] = "#CE577C";/*focused instantmenu or topbar d */
// hover over empty tag
static char col_hover[] = "#596377";/*focused instantmenu or topbar d */
static char col_hover_shadow[] = "#475166";/*focused instantmenu or topbar d */
static const char *colors[][4] = {
/* fg bg border float*/
[SchemeNorm] = { col_white, col_background, col_pastel_blue, col_green },
[SchemeSel] = { col_white, col_blue, col_light_blue, col_green },
[SchemeHid] = { col_pastel_blue, col_background, col_pastel_blue, col_green },
[SchemeTags] = { col_white, col_blue, col_light_blue, col_dark_blue },
[SchemeActive] = { col_white, col_green, col_light_blue, col_dark_green },
[SchemeAddActive] = { col_white, col_orange, col_light_blue, col_dark_orange },
[SchemeEmpty] = { col_white, col_red, col_light_blue, col_dark_red },
[SchemeHover] = { col_white, col_hover, col_light_blue, col_hover_shadow },
[SchemeClose] = { col_hover_red, col_red, col_hover_dark_red, col_dark_red },
[SchemeHoverTags] = { col_white, col_hover_blue, col_light_blue, col_hover_dark_blue },
};
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "s" };
/* ffox, programming1, term, music, steam, folder, play icon, document, message */
static const char *tagsalt[] = { "", "{}", "$", "", "", "", "", "", "" };
static const char scratchpadname[] = "instantscratchpad";
static const char *upvol[] = {"/usr/share/instantassist/utils/p.sh", "+", NULL};
static const char *downvol[] = {"/usr/share/instantassist/utils/p.sh", "-", NULL};
static const char *mutevol[] = {"/usr/share/instantassist/utils/p.sh", "m", NULL};
static const char *upbright[] = {"/usr/share/instantassist/utils/b.sh", "+", NULL};
static const char *downbright[] = {"/usr/share/instantassist/utils/b.sh", "-", NULL};
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{"Pavucontrol", NULL, NULL, 0, 1, -1},
{"Onboard", NULL, NULL, 0, 1, -1},
{"floatmenu", NULL, NULL, 0, 1, -1},
{"Welcome.py", NULL, NULL, 0, 1, -1},
{"Pamac-installer", NULL, NULL, 0, 1, -1},
{"xpad", NULL, NULL, 0, 1, -1},
{"instantfloat", NULL, NULL, 0, 2, -1},
{scratchpadname, NULL, NULL, 0, 4, -1},
{"kdeconnect.daemon", NULL, NULL, 0, 3, -1},
{"Panther", NULL, NULL, 0, 3, -1},
{"org-wellkord-globonote-Main", NULL, NULL, 0, 1, -1},
{"Peek", NULL, NULL, 0, 1, -1},
{"ROX-Filer", NULL, NULL, 0, 0, -1},
};
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const int decorhints = 1; /* 1 means respect decoration hints */
static const Layout layouts[] = {
/* symbol arrange function */
{ "+", tile }, /* first entry is default */
{ "#", grid },
{ "-", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
{ "|||", tcl },
{ "H[]", deck },
{ "O", overviewlayout },
{ "TTT", bstack },
{ "===", bstackhoriz },
{ "[@]", spiral },
{ "[\\]", dwindle },
{ NULL, NULL },
};
/* key definitions */
#define MODKEY Mod4Mask
#define TAGKEYS(KEY, TAG) \
{MODKEY, KEY, view, {.ui = 1 << TAG}}, \
{MODKEY | ControlMask, KEY, toggleview, {.ui = 1 << TAG}}, \
{MODKEY | ShiftMask, KEY, tag, {.ui = 1 << TAG}}, \
{MODKEY | Mod1Mask, KEY, followtag, {.ui = 1 << TAG}}, \
{MODKEY | ControlMask | ShiftMask, KEY, toggletag, {.ui = 1 << TAG}},
#define SHCMD(cmd) \
{ \
.v = (const char *[]) { "/bin/sh", "-c", cmd, NULL } \
}
/* commands */
static char instantmenumon[2] = "0"; /* component of instantmenucmd, manipulated in spawn() */
static const char *instantmenucmd[] = {"instantmenu_run", NULL};
static const char *clipmenucmd[] = {"instantclipmenu", NULL};
static const char *smartcmd[] = {"instantmenu_smartrun", NULL};
static const char *instantmenustcmd[] = {"instantmenu_run_st", NULL};
static const char *termcmd[] = {".config/instantos/default/terminal", NULL};
static const char *termscratchcmd[] = {".config/instantos/default/terminal", "-c", scratchpadname, NULL};
static const char *quickmenucmd[] = {"quickmenu", NULL};
static const char *instantassistcmd[] = {"instantassist", NULL};
static const char *instantrepeatcmd[] = {"instantrepeat", NULL};
static const char *instantpacmancmd[] = {"instantpacman", NULL};
static const char *instantsharecmd[] = {"instantshare", "snap", NULL};
static const char *nautiluscmd[] = {".config/instantos/default/filemanager", NULL};
static const char *slockcmd[] = {"ilock", NULL};
static const char *langswitchcmd[] = {"ilayout", NULL};
static const char *oslockcmd[] = {"instantlock", "-o", NULL};
static const char *helpcmd[] = {"instanthotkeys", "gui", NULL};
static const char *searchcmd[] = {"instantsearch", NULL};
static const char *iswitchcmd[] = {"iswitch", NULL};
static const char *instantswitchcmd[] = {"rofi", "-show", "window", "-kb-row-down", "Alt+Tab,Down", "-kb-row-up", "Alt+Ctrl+Tab,Up", "-kb-accept-entry", "!Alt_L,!Alt+Tab,Return", "-me-select-entry", "", "-me-accept-entry", "MousePrimary", NULL};
static const char *caretinstantswitchcmd[] = {"rofi", "-show", "window", "-kb-row-down", "Alt+Tab,Down", "-kb-row-up", "Alt+Ctrl+Tab,Up", "-kb-accept-entry", "!Alt_L,!Alt+Tab,Return", "-me-select-entry", "", "-me-accept-entry", "MousePrimary", "-theme", "/usr/share/instantdotfiles/rofi/appmenu.rasi", NULL};
static const char *onboardcmd[] = {"onboard", NULL};
static const char *instantshutdowncmd[] = {"instantshutdown", NULL};
static const char *systemmonitorcmd[] = {".config/instantos/default/systemmonitor", NULL};
static const char *notifycmd[] = {"instantnotify", NULL};
static const char *rangercmd[] = { "st", "-e", "ranger", NULL };
static const char *panther[] = { ".config/instantos/default/appmenu", NULL};
static const char *controlcentercmd[] = { "instantsettings", NULL};
static const char *displaycmd[] = { "instantdisper", NULL};
static const char *pavucontrol[] = { "pavucontrol", NULL};
static const char *instantsettings[] = { "instantsettings", NULL};
static const char *clickcmd[] = { "autoclicker", NULL };
static const char *codecmd[] = { "instantutils open graphicaleditor", NULL };
static const char *startmenucmd[] = { "instantstartmenu", NULL };
static const char *scrotcmd[] = { "/usr/share/instantassist/assists/s/s.sh", NULL };
static const char *fscrotcmd[] = { "/usr/share/instantassist/assists/s/m.sh", NULL };
static const char *clipscrotcmd[] = { "/usr/share/instantassist/assists/s/c.sh", NULL };
static const char *fclipscrotcmd[] = { "/usr/share/instantassist/assists/s/f.sh", NULL };
static const char *firefoxcmd[] = { ".config/instantos/default/browser", NULL };
static const char *editorcmd[] = { ".config/instantos/default/editor", NULL };
static const char *playernext[] = { "playerctl", "next", NULL};
static const char *playerprevious[] = { "playerctl", "previous", NULL};
static const char *playerpause[] = { "playerctl", "play-pause", NULL};
static const char *spoticli[] = { "spoticli", "m", NULL};
#include "push.c"
ResourcePref resources[] = {
{ "bgcolor", STRING, &col_background },
{ "hoverbgcolor", STRING, &col_hover },
{ "hovershadowcolor", STRING, &col_hover_shadow },
{ "fontcolor", STRING, &col_white },
{ "minimize", STRING, &col_orange },
{ "darkminimize", STRING, &col_dark_orange },
{ "border", STRING, &col_pastel_blue },
{ "activeborder", STRING, &col_light_blue },
{ "activetag", STRING, &col_green },
{ "darkactivetag", STRING, &col_dark_green },
{ "close", STRING, &col_red },
{ "darkclose", STRING, &col_dark_red },
{ "hoverclose", STRING, &col_hover_red },
{ "darkhoverclose", STRING, &col_hover_dark_red },
{ "focus", STRING, &col_blue },
{ "darkfocus", STRING, &col_dark_blue },
{ "hoverfocus", STRING, &col_hover_blue },
{ "darkhoverfocus", STRING, &col_hover_dark_blue },
{ "barheight", INTEGER, &barheight },
{ "font", STRING, &xresourcesfont },
};
static Xcommand commands[] = {
/* signum function default argument arg handler*/
{ "overlay", setoverlay, {0}, 0 },
{ "tag", view, { .ui = 2 }, 3 },
{ "animated", toggleanimated, { .ui = 2 }, 1 },
{ "alttab", alttabfree, { .ui = 2 }, 1 },
{ "layout", commandlayout, { .ui = 0 }, 1 },
{ "prefix", commandprefix, { .ui = 1 }, 1 },
{ "alttag", togglealttag, { .ui = 0 }, 1 },
{ "hidetags", toggleshowtags, { .ui = 0 }, 1 },
{ "specialnext", setspecialnext, { .ui = 0 }, 3 },
};
static Key dkeys[] = {
/* modifier key function argument */
{0, XK_r, spawn, {.v = rangercmd } },
{0, XK_e, spawn, {.v = editorcmd } },
{0, XK_n, spawn, {.v = nautiluscmd } },
{0, XK_space, spawn, {.v = panther} },
{0, XK_f, spawn, {.v = firefoxcmd} },
{0, XK_a, spawn, {.v = instantassistcmd} },
{0, XK_F1, spawn, {.v = helpcmd} },
{0, XK_m, spawn, {.v = spoticli} },
{0, XK_Return, spawn, {.v = termcmd} },
{0, XK_plus, spawn, {.v = upvol} },
{0, XK_minus, spawn, {.v = downvol} },
{0, XK_Tab, spawn, {.v = caretinstantswitchcmd} },
{0, XK_c, spawn, {.v = codecmd} },
{0, XK_y, spawn, {.v = smartcmd} },
{0, XK_v, spawn, {.v = quickmenucmd} },
{0, XK_h, viewtoleft, {0}},
{0, XK_l, viewtoright, {0}},
{0, XK_k, shiftview, {.i = +1 } },
{0, XK_j, shiftview, {.i = -1 } },
{0, XK_Left, viewtoleft, {0}},
{0, XK_Right, viewtoright, {0}},
{0, XK_Up, shiftview, {.i = +1 } },
{0, XK_Down, shiftview, {.i = -1 } },
{0, XK_1, view, {.ui = 1 << 0}},
{0, XK_2, view, {.ui = 1 << 1}},
{0, XK_3, view, {.ui = 1 << 2}},
{0, XK_4, view, {.ui = 1 << 3}},
{0, XK_5, view, {.ui = 1 << 4}},
{0, XK_6, view, {.ui = 1 << 5}},
{0, XK_7, view, {.ui = 1 << 6}},
{0, XK_8, view, {.ui = 1 << 7}},
{0, XK_9, view, {.ui = 1 << 8}},
};
static Key keys[] = {
/* modifier key function argument */
{MODKEY|Mod1Mask, XK_j, keyresize, {.i = 0}},
{MODKEY|Mod1Mask, XK_k, keyresize, {.i = 1}},
{MODKEY|Mod1Mask, XK_l, keyresize, {.i = 2}},
{MODKEY|Mod1Mask, XK_h, keyresize, {.i = 3}},
{MODKEY|ControlMask, XK_d, distributeclients, {0}},
{MODKEY|ShiftMask, XK_d, drawwindow, {0}},
{MODKEY|ShiftMask, XK_Escape, spawn, {.v = systemmonitorcmd}},
{MODKEY, XK_r, spawn, {.v = rangercmd } },
{MODKEY|ControlMask|Mod1Mask, XK_r, redrawwin, {0} },
{MODKEY, XK_n, spawn, {.v = nautiluscmd } },
{MODKEY | ControlMask, XK_q, spawn, {.v = instantshutdowncmd } },
{MODKEY, XK_y, spawn, {.v = panther} },
{MODKEY, XK_a, spawn, {.v = instantassistcmd} },
{MODKEY|ShiftMask, XK_a, spawn, {.v = instantrepeatcmd} },
{MODKEY|ControlMask, XK_i, spawn, {.v = instantpacmancmd} },
{MODKEY|ShiftMask, XK_i, spawn, {.v = instantsharecmd} },
{MODKEY, XK_w, setoverlay, {0} },
{MODKEY | ControlMask, XK_w, createoverlay, {0} },
{MODKEY, XK_g, spawn, {.v = notifycmd} },
{MODKEY | ControlMask, XK_space, spawn, {.v = instantmenucmd}},
{MODKEY | ShiftMask, XK_v, spawn, {.v = clipmenucmd}},
{MODKEY, XK_space, spawn, {.v = smartcmd}},
{MODKEY, XK_minus, spawn, {.v = instantmenustcmd}},
{MODKEY, XK_x, spawn, {.v = instantswitchcmd}},
{Mod1Mask, XK_Tab, spawn, {.v = iswitchcmd}},
{MODKEY|Mod1Mask|ControlMask|ShiftMask, XK_Tab, alttabfree, {0}},
{MODKEY, XK_dead_circumflex, spawn, {.v = caretinstantswitchcmd}},
{MODKEY | ControlMask, XK_l, spawn, {.v = slockcmd}},
{MODKEY | ControlMask, XK_h, hidewin, {0}},
{MODKEY | Mod1Mask | ControlMask, XK_h, unhideall, {0}},
{MODKEY | Mod1Mask | ControlMask, XK_l, spawn, {.v = langswitchcmd}},
{MODKEY, XK_Return, spawn, {.v = termcmd}},
{MODKEY, XK_v, spawn, {.v = quickmenucmd}},
{MODKEY, XK_b, togglebar, {0}},
{MODKEY, XK_j, focusstack, {.i = +1}},
{MODKEY, XK_Down, downkey, {.i = +1}},
{MODKEY|ShiftMask, XK_Down, downpress, {0}},
{MODKEY, XK_k, focusstack, {.i = -1}},
{MODKEY, XK_Up, upkey, {.i = -1}},
{MODKEY|ShiftMask, XK_Up, uppress, {0}},
{MODKEY|ControlMask, XK_j, pushdown, {0} },
{MODKEY|ControlMask, XK_k, pushup, {0} },
{MODKEY|Mod1Mask, XK_s, togglealttag, { .ui = 2 } },
{MODKEY|ShiftMask|Mod1Mask, XK_s, toggleanimated, { .ui = 2 } },
{MODKEY|ControlMask, XK_s, togglesticky, {0} },
{MODKEY|ShiftMask, XK_s, createscratchpad, {0}},
{MODKEY, XK_s, togglescratchpad, {0}},
{MODKEY|ShiftMask, XK_f, togglefakefullscreen, {0} },
{MODKEY|ControlMask, XK_f, tempfullscreen, {0} },
{MODKEY|Mod1Mask, XK_f, spawn, { .v = searchcmd } },
{MODKEY | ShiftMask | Mod1Mask, XK_d, toggledoubledraw, {0} },
{MODKEY|ShiftMask, XK_w, warpfocus, {0} },
{MODKEY|Mod1Mask, XK_w, centerwindow, {0} },
{MODKEY|ShiftMask|ControlMask, XK_s, toggleshowtags, { .ui = 2 } },
{MODKEY, XK_i, incnmaster, {.i = +1}},
{MODKEY, XK_d, incnmaster, {.i = -1}},
{MODKEY, XK_h, setmfact, {.f = -0.05}},
{MODKEY, XK_l, setmfact, {.f = +0.05}},
{MODKEY | ShiftMask, XK_Return, zoom, {0}},
{MODKEY, XK_Tab, lastview, {0}},
{MODKEY|ShiftMask, XK_Tab, focuslastclient, {0}},
{MODKEY|Mod1Mask, XK_Tab, followview, {0}},
{MODKEY, XK_q, shutkill, {0}},
{Mod1Mask, XK_F4, killclient, {0}},
{MODKEY, XK_F1, spawn, {.v = helpcmd}},
{MODKEY, XK_F2, toggleprefix, {0}},
{MODKEY, XK_t, setlayout, {.v = &layouts[0]}},
{MODKEY, XK_f, setlayout, {.v = &layouts[2]}},
{MODKEY, XK_m, setlayout, {.v = &layouts[3]}},
{MODKEY|ShiftMask, XK_m, movemouse, {0}},
{MODKEY|Mod1Mask, XK_m, resizemouse, {0}},
{MODKEY, XK_c, setlayout, {.v = &layouts[1]}},
{MODKEY|ControlMask, XK_c, spawn, {.v = controlcentercmd}},
{MODKEY, XK_Left, animleft, {0}},
{MODKEY, XK_Right, animright, {0}},
{MODKEY, XK_e, overtoggle, {.ui = ~0}},
{MODKEY|ShiftMask, XK_e, fullovertoggle, {.ui = ~0}},
{MODKEY|ControlMask, XK_Left, shiftview, {.i = -1 }},
{MODKEY|Mod1Mask, XK_Left, moveleft, {0}},
{MODKEY|ControlMask, XK_Right, shiftview, {.i = +1 }},
{MODKEY|Mod1Mask, XK_Right, moveright, {0}},
{MODKEY|ShiftMask, XK_Left, tagtoleft, {0}},
{MODKEY|ShiftMask, XK_Right, tagtoright, {0}},
{MODKEY|ShiftMask, XK_j, moveresize, {.i = 0}},
{MODKEY|ShiftMask, XK_k, moveresize, {.i = 1}},
{MODKEY|ShiftMask, XK_l, moveresize, {.i = 2}},
{MODKEY|ShiftMask, XK_h, moveresize, {.i = 3}},
{MODKEY|ControlMask, XK_comma, cyclelayout, {.i = -1 } },
{MODKEY|ControlMask, XK_period, cyclelayout, {.i = +1 } },
{MODKEY, XK_p, setlayout, {0}},
{MODKEY|ShiftMask, XK_p, spawn, {.v = displaycmd }},
{MODKEY | ShiftMask, XK_space, spacetoggle, {0}},
{MODKEY, XK_0, view, {.ui = ~0}},
{MODKEY | ShiftMask, XK_0, tag, {.ui = ~0}},
{MODKEY, XK_comma, focusmon, {.i = -1}},
{MODKEY, XK_period, focusmon, {.i = +1}},
{MODKEY | ShiftMask, XK_comma, tagmon, {.i = -1}},
{MODKEY | ShiftMask, XK_period, tagmon, {.i = +1}},
{MODKEY | Mod1Mask, XK_comma, followmon, {.i = -1}},
{MODKEY | Mod1Mask, XK_period, followmon, {.i = +1}},
{MODKEY | ShiftMask | ControlMask | Mod1Mask, XK_period, desktopset, {0}},
TAGKEYS(XK_1, 0)
TAGKEYS(XK_2, 1)
TAGKEYS(XK_3, 2)
TAGKEYS(XK_4, 3)
TAGKEYS(XK_5, 4)
TAGKEYS(XK_6, 5)
TAGKEYS(XK_7, 6)
TAGKEYS(XK_8, 7)
TAGKEYS(XK_9, 8){MODKEY | ShiftMask | ControlMask, XK_q, quit, {0}},
{0, XF86XK_MonBrightnessUp, spawn, {.v = upbright}},
{0, XF86XK_MonBrightnessDown, spawn, {.v = downbright}},
{0, XF86XK_AudioLowerVolume, spawn, {.v = downvol}},
{0, XF86XK_AudioMute, spawn, {.v = mutevol}},
{0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol}},
{0, XF86XK_AudioPlay, spawn, {.v = playerpause}},
{0, XF86XK_AudioPause, spawn, {.v = playerpause}},
{0, XF86XK_AudioNext, spawn, {.v = playernext}},
{0, XF86XK_AudioPrev, spawn, {.v = playerprevious}},
{MODKEY|ShiftMask, XK_Print, spawn, {.v = fscrotcmd}},
{MODKEY, XK_Print, spawn, {.v = scrotcmd}},
{MODKEY|ControlMask, XK_Print, spawn, {.v = clipscrotcmd}},
{MODKEY|Mod1Mask, XK_Print, spawn, {.v = fclipscrotcmd}},
{ MODKEY, XK_o, winview, {0} },
};
/* button definitions */
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, cyclelayout, {.i = -1 } },
{ ClkLtSymbol, 0, Button3, cyclelayout, {.i = +1 } },
{ ClkLtSymbol, MODKEY, Button1, createoverlay, {0} },
{ ClkLtSymbol, 0, Button2, setlayout, {.v = &layouts[0]} },
{ ClkWinTitle, 0, Button1, dragmouse, {0} },
{ ClkWinTitle, MODKEY, Button1, setoverlay, {0} },
{ ClkWinTitle, MODKEY, Button3, spawn, {.v = notifycmd } },
{ ClkStatusText, 0, Button3, spawn, {.v = caretinstantswitchcmd } },
{ ClkWinTitle, 0, Button2, closewin, {0} },
{ ClkCloseButton, 0, Button1, killclient, {0} },
{ ClkCloseButton, 0, Button3, togglelocked, {0} },
{ ClkWinTitle, 0, Button3, dragrightmouse, {0} },
{ ClkWinTitle, 0, Button5, focusstack, {.i = +1} },
{ ClkWinTitle, 0, Button4, focusstack, {.i = -1} },
{ ClkWinTitle, ShiftMask, Button5, pushdown, {0} },
{ ClkWinTitle, ShiftMask, Button4, pushup, {0} },
{ ClkWinTitle, ControlMask, Button5, downscaleclient,{0} },
{ ClkWinTitle, ControlMask, Button4, upscaleclient, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkStatusText, 0, Button4, spawn, {.v = upvol } },
{ ClkStatusText, 0, Button5, spawn, {.v = downvol } },
{ ClkStatusText, MODKEY, Button2, spawn, {.v = mutevol } },
{ ClkStatusText, 0, Button1, spawn, {.v = panther } },
{ ClkStatusText, MODKEY|ShiftMask,Button1, spawn, {.v = pavucontrol } },
{ ClkStatusText, MODKEY|ControlMask,Button1, spawn, {.v = notifycmd } },
{ ClkStatusText, MODKEY, Button1, spawn, {.v = instantsettings } },
{ ClkStatusText, MODKEY, Button3, spawn, {.v = spoticli } },
{ ClkStatusText, MODKEY, Button4, spawn, {.v = upbright } },
{ ClkStatusText, MODKEY, Button5, spawn, {.v = downbright } },
{ ClkRootWin, MODKEY, Button3, spawn, {.v = notifycmd } },
{ ClkRootWin, 0, Button1, spawn, {.v = panther } },
{ ClkRootWin, MODKEY, Button1, setoverlay, {0} },
{ ClkRootWin, 0, Button3, spawn, {.v = smartcmd } },
{ ClkRootWin, 0, Button5, showoverlay, {0} },
{ ClkRootWin, 0, Button4, hideoverlay, {0} },
{ ClkRootWin, 0, Button2, spawn, {.v = instantmenucmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkClientWin, MODKEY|Mod1Mask,Button3, forceresizemouse, {0} },
{ ClkClientWin, MODKEY | ShiftMask, Button3, resizeaspectmouse, {0} },
{ ClkTagBar, 0, Button1, dragtag, {0} },
{ ClkTagBar, 0, Button5, viewtoright, {0} },
{ ClkTagBar, MODKEY, Button4, shiftview, {.i = -1 } },
{ ClkTagBar, MODKEY, Button5, shiftview, {.i = +1 } },
{ ClkTagBar, 0, Button4, viewtoleft, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, Mod1Mask, Button1, followtag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
{ ClkShutDown, 0, Button1, spawn, {.v = instantshutdowncmd } },
{ ClkShutDown, 0, Button3, spawn, {.v = slockcmd } },
{ ClkShutDown, 0, Button2, spawn, {.v = oslockcmd } },
{ ClkSideBar, 0, Button1, gesturemouse, {0} },
{ ClkStartMenu, 0, Button1, spawn, {.v = startmenucmd}},
{ ClkStartMenu, ShiftMask, Button1, toggleprefix, {0}},
{ ClkStartMenu, 0, Button3, spawn, {.v = quickmenucmd}},
};