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