diff options
Diffstat (limited to 'src/config/config.def.h')
| -rw-r--r-- | src/config/config.def.h | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/src/config/config.def.h b/src/config/config.def.h new file mode 100644 index 0000000..e6d32c5 --- /dev/null +++ b/src/config/config.def.h | |||
| @@ -0,0 +1,129 @@ | |||
| 1 | // #include <cstddef> | ||
| 2 | static const unsigned int borderpx = 0; | ||
| 3 | static const unsigned int snap = 32; | ||
| 4 | static const unsigned int systraypinning = 0; | ||
| 5 | static const unsigned int systrayonleft = 0; | ||
| 6 | static const unsigned int systrayspacing = 2; | ||
| 7 | static const unsigned int gappih = 5; | ||
| 8 | static const unsigned int gappiv = 5; | ||
| 9 | static const unsigned int gappoh = 5; | ||
| 10 | static const unsigned int gappov = 5; | ||
| 11 | |||
| 12 | static const int showsystray = 1; | ||
| 13 | static const int systraypinningfailfirst = 1; | ||
| 14 | static const int smartgaps = 0; | ||
| 15 | static const int swallowfloating = 1; | ||
| 16 | static const int showbar = 0; | ||
| 17 | static const int topbar = 1; | ||
| 18 | |||
| 19 | static const char *fonts[] = {"monospace:size=10"}; | ||
| 20 | static const char dmenufont[] = "monospace:size=10"; | ||
| 21 | static const char col_gray1[] = "#222222"; | ||
| 22 | static const char col_gray2[] = "#444444"; | ||
| 23 | static const char col_gray3[] = "#bbbbbb"; | ||
| 24 | static const char col_gray4[] = "#eeeeee"; | ||
| 25 | static const char col_cyan[] = "#005577"; | ||
| 26 | static const char norm_fg[] = "#383a42"; | ||
| 27 | static const char norm_bg[] = "#e1e3ea"; | ||
| 28 | static const char norm_border[] = "#3f3f40"; | ||
| 29 | |||
| 30 | static const char sel_fg[] = "#383a42"; | ||
| 31 | static const char sel_bg[] = "#e1e3ea"; | ||
| 32 | static const char sel_border[] = "#225588"; | ||
| 33 | |||
| 34 | static const char urg_fg[] = "#225588"; | ||
| 35 | static const char urg_bg[] = "#e1e3ea"; | ||
| 36 | static const char urg_border[] = "#000c18"; | ||
| 37 | |||
| 38 | static const char *colors[][3] = { | ||
| 39 | [SchemeNorm] = {norm_fg, norm_bg, norm_border}, // unfocused wins | ||
| 40 | [SchemeSel] = {sel_fg, sel_bg, sel_border}, // the focused win | ||
| 41 | }; | ||
| 42 | |||
| 43 | /* tagging */ | ||
| 44 | static const char *tags[] = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}; | ||
| 45 | |||
| 46 | static const Rule rules[] = { | ||
| 47 | /* class instance title tags mask isfloating isterminal | ||
| 48 | noswallow monitor */ | ||
| 49 | {"St", NULL, NULL, 0, 0, 1, 0, -1}, | ||
| 50 | {NULL, NULL, "Event Tester", 0, 0, 0, 1, -1}, /* xev */ | ||
| 51 | }; | ||
| 52 | |||
| 53 | static const float mfact = 0.50; | ||
| 54 | static const int nmaster = 1; | ||
| 55 | static const int resizehints = 0; | ||
| 56 | static const int lockfullscreen = 1; | ||
| 57 | |||
| 58 | static const Layout layouts[] = { | ||
| 59 | /* symbol arrange function */ | ||
| 60 | {"[]=", tile}, /* first entry is default */ | ||
| 61 | {"><>", NULL}, /* no layout function means floating behavior */ | ||
| 62 | // {"[M]", monocle}, | ||
| 63 | }; | ||
| 64 | |||
| 65 | /* key definitions */ | ||
| 66 | #define MODKEY Mod4Mask | ||
| 67 | #define TAGKEYS(KEY, TAG) \ | ||
| 68 | {MODKEY, KEY, view, {.ui = 1 << TAG}}, \ | ||
| 69 | {MODKEY | ControlMask, KEY, toggleview, {.ui = 1 << TAG}}, \ | ||
| 70 | {MODKEY | ShiftMask, KEY, tag, {.ui = 1 << TAG}}, \ | ||
| 71 | {MODKEY | ControlMask | ShiftMask, KEY, toggletag, {.ui = 1 << TAG}}, | ||
| 72 | |||
| 73 | /* commands */ | ||
| 74 | static char dmenumon[2] = "0"; | ||
| 75 | |||
| 76 | static const char *dmenucmd[] = {"dmenucmd.sh", NULL}; | ||
| 77 | static const char *termcmd[] = {"st", NULL}; | ||
| 78 | static const char *screenshotcmd[] = {"screenshotsel.sh", NULL}; | ||
| 79 | |||
| 80 | static const Key keys[] = { | ||
| 81 | /* modifier key function argument */ | ||
| 82 | {MODKEY, XK_space, spawn, {.v = dmenucmd}}, | ||
| 83 | {MODKEY, XK_Return, spawn, {.v = termcmd}}, | ||
| 84 | {MODKEY | ShiftMask, XK_s, spawn, {.v = screenshotcmd}}, | ||
| 85 | {MODKEY, XK_b, togglebar, {0}}, | ||
| 86 | {MODKEY, XK_q, killclient, {0}}, | ||
| 87 | {MODKEY, XK_f, togglefullscr, {0}}, | ||
| 88 | {MODKEY, XK_l, setlayout, {0}}, | ||
| 89 | {MODKEY | ShiftMask, XK_space, togglefloating, {0}}, | ||
| 90 | TAGKEYS(XK_1, 0) TAGKEYS(XK_2, 1) TAGKEYS(XK_3, 2) TAGKEYS(XK_4, 3) | ||
| 91 | TAGKEYS(XK_5, 4) TAGKEYS(XK_6, 5) TAGKEYS(XK_7, 6) TAGKEYS(XK_8, 7) | ||
| 92 | TAGKEYS(XK_9, 8){MODKEY | ShiftMask, XK_q, quit, {0}}, | ||
| 93 | {0, | ||
| 94 | XF86XK_AudioMute, | ||
| 95 | spawn, | ||
| 96 | {.v = (const char *[]){"wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", | ||
| 97 | "toggle"}}}, | ||
| 98 | {0, | ||
| 99 | XF86XK_AudioMicMute, | ||
| 100 | spawn, | ||
| 101 | {.v = (const char *[]){"wpctl", "set-mute", "54", "toggle"}}}, | ||
| 102 | {0, | ||
| 103 | XF86XK_AudioRaiseVolume, | ||
| 104 | spawn, | ||
| 105 | {.v = (const char *[]){"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", | ||
| 106 | "10%+"}}}, | ||
| 107 | {0, | ||
| 108 | XF86XK_AudioLowerVolume, | ||
| 109 | spawn, | ||
| 110 | {.v = (const char *[]){"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", | ||
| 111 | "10%-"}}}, | ||
| 112 | }; | ||
| 113 | |||
| 114 | static const Button buttons[] = { | ||
| 115 | /* click event mask button function argument */ | ||
| 116 | {ClkLtSymbol, 0, Button1, setlayout, {0}}, | ||
| 117 | {ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]}}, | ||
| 118 | {ClkTagBar, MODKEY, Button1, tag, {0}}, | ||
| 119 | {ClkTagBar, MODKEY, Button3, toggletag, {0}}, | ||
| 120 | {ClkWinTitle, 0, Button2, zoom, {0}}, | ||
| 121 | {ClkStatusText, 0, Button2, spawn, {.v = termcmd}}, | ||
| 122 | {ClkClientWin, MODKEY, Button1, movemouse, {0}}, | ||
| 123 | {ClkClientWin, MODKEY, Button2, togglefloating, {0}}, | ||
| 124 | {ClkClientWin, MODKEY, Button3, resizemouse, {0}}, | ||
| 125 | {ClkTagBar, 0, Button1, view, {0}}, | ||
| 126 | {ClkTagBar, 0, Button3, toggleview, {0}}, | ||
| 127 | {ClkTagBar, MODKEY, Button1, tag, {0}}, | ||
| 128 | {ClkTagBar, MODKEY, Button3, toggletag, {0}}, | ||
| 129 | }; | ||
