Mercurial > gbwm
annotate default.config.h @ 15:9d6b34ed3a09
featured useful combinations for laptop users (commented)
author | Atarwn Gard <a@qwa.su> |
---|---|
date | Wed, 15 Oct 2025 08:28:40 +0500 |
parents | 9a4656899644 |
children | 7a779983be56 |
rev | line source |
---|---|
3 | 1 #ifndef CONFIG_H |
2 #define CONFIG_H | |
3 | |
4 #include <X11/Xlib.h> | |
5 #include <X11/keysym.h> | |
6 | |
7 // Modifier | |
8 #define MOD Mod4Mask | |
9 | |
10 // Grid layout | |
11 #define GRID_ROWS 4 | |
12 #define GRID_COLS 7 | |
13 static const char grid_chars[GRID_ROWS][GRID_COLS+1] = { | |
14 "1234567", | |
15 "qwertyu", | |
16 "asdfghj", | |
17 "zxcvbnm" | |
18 }; | |
19 | |
20 // Configuration | |
21 static const int padding = 8; | |
22 static const int border_width = 2; | |
6 | 23 static const char col_border_normal[] = "#5a3f47"; |
24 static const char col_border_focused[] = "#ffb4a9"; | |
25 static const char col_bg[] = "#1f1a1b"; | |
26 static const char col_fg[] = "#ebe0e1"; | |
27 static const char col_sel[] = "#5a3f47"; | |
28 static const char overlay_font[] = "LiberationMono:size=48"; | |
29 static const char dmenu_font[] = "LiberationMono:size=12"; // You can cut-out this line if you don't use dmenu | |
30 static const char root_bg[] = "#1f1a1b"; | |
3 | 31 |
32 // Commands | |
33 static const char *termcmd[] = { "st", NULL }; | |
6 | 34 static const char *menucmd[] = { |
35 "dmenu_run", | |
36 "-fn", dmenu_font, | |
37 "-nb", col_bg, | |
38 "-nf", col_fg, | |
39 "-sb", col_sel, | |
40 "-sf", col_border_focused, | |
41 NULL | |
42 }; | |
15
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
43 // static const char *upbrightness[] = { "brightnessctl", "set", "10%+", NULL }; |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
44 // static const char *downbrightness[] = { "brightnessctl", "set", "10%-", NULL }; |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
45 // static const char *incvol[] = {"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%+", NULL}; |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
46 // static const char *decvol[] = {"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%-", NULL}; |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
47 // static const char *mutevol[] = {"wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle", NULL}; |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
48 static const char *scrotcmd[] = { "/bin/sh", "-c", "scrot ~/Pictures/Screenshots/$(date +%Y.%m.%d_%H.%M).png", NULL }; |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
49 // static const char *scrotselcmd[] = { "/bin/sh", "-c", "scrot -s ~/Pictures/Screenshots/$(date +%Y.%m.%d_%H.%M).png", NULL }; |
3 | 50 |
51 // Key bindings | |
52 static Key keys[] = { | |
53 /* modifier key function argument */ | |
54 { MOD, XK_a, enter_overlay, {0} }, | |
55 { MOD, XK_Return, spawn, {.v = termcmd} }, | |
56 { MOD, XK_p, spawn, {.v = menucmd} }, | |
15
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
57 // { 0, XF86XK_MonBrightnessUp, spawn, {.v = upbrightness } }, |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
58 // { 0, XF86XK_MonBrightnessDown, spawn, {.v = downbrightness } }, |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
59 // { 0, XF86XK_AudioLowerVolume, spawn, {.v = decvol} }, |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
60 // { 0, XF86XK_AudioRaiseVolume, spawn, {.v = incvol} }, |
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
61 // { 0, XF86XK_AudioMute, spawn, {.v = mutevol} }, |
3 | 62 { 0, XK_Print, spawn, {.v = scrotcmd} }, |
15
9d6b34ed3a09
featured useful combinations for laptop users (commented)
Atarwn Gard <a@qwa.su>
parents:
14
diff
changeset
|
63 // { 0|ShiftMask, XK_Print, spawn, {.v = scrotselcmd} }, |
3 | 64 { MOD, XK_q, killclient, {0} }, |
65 { MOD, XK_f, toggle_fullscreen, {0} }, | |
66 { MOD, XK_Tab, cycle_focus, {0} }, | |
14
9a4656899644
add backward window cycling with Win+Shift+Tab
Atarwn Gard <a@qwa.su>
parents:
6
diff
changeset
|
67 { MOD|ShiftMask, XK_Tab, cycle_focus_backward, {0} }, |
3 | 68 { MOD|ShiftMask, XK_q, quit, {0} }, |
69 | |
70 // Workspaces | |
71 { MOD, XK_1, switchws, {.i = 0} }, | |
72 { MOD, XK_2, switchws, {.i = 1} }, | |
73 { MOD, XK_3, switchws, {.i = 2} }, | |
74 { MOD, XK_4, switchws, {.i = 3} }, | |
75 { MOD, XK_5, switchws, {.i = 4} }, | |
76 { MOD, XK_6, switchws, {.i = 5} }, | |
77 { MOD, XK_7, switchws, {.i = 6} }, | |
78 { MOD, XK_8, switchws, {.i = 7} }, | |
79 { MOD, XK_9, switchws, {.i = 8} }, | |
80 | |
81 // Move window to workspace | |
82 { MOD|ShiftMask, XK_1, movewin_to_ws, {.i = 0} }, | |
83 { MOD|ShiftMask, XK_2, movewin_to_ws, {.i = 1} }, | |
84 { MOD|ShiftMask, XK_3, movewin_to_ws, {.i = 2} }, | |
85 { MOD|ShiftMask, XK_4, movewin_to_ws, {.i = 3} }, | |
86 { MOD|ShiftMask, XK_5, movewin_to_ws, {.i = 4} }, | |
87 { MOD|ShiftMask, XK_6, movewin_to_ws, {.i = 5} }, | |
88 { MOD|ShiftMask, XK_7, movewin_to_ws, {.i = 6} }, | |
89 { MOD|ShiftMask, XK_8, movewin_to_ws, {.i = 7} }, | |
90 { MOD|ShiftMask, XK_9, movewin_to_ws, {.i = 8} }, | |
91 }; | |
92 | |
93 #endif /* CONFIG_H */ |