// #include static const unsigned int borderpx = 0; static const unsigned int snap = 32; static const unsigned int systraypinning = 0; static const unsigned int systrayonleft = 0; static const unsigned int systrayspacing = 2; static const unsigned int gappih = 5; static const unsigned int gappiv = 5; static const unsigned int gappoh = 5; static const unsigned int gappov = 5; static const int showsystray = 1; static const int systraypinningfailfirst = 1; static const int smartgaps = 0; static const int swallowfloating = 1; static const int showbar = 0; static const int topbar = 1; static const char *fonts[] = {"monospace:size=10"}; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; static const char col_cyan[] = "#005577"; static const char norm_fg[] = "#383a42"; static const char norm_bg[] = "#e1e3ea"; static const char norm_border[] = "#3f3f40"; static const char sel_fg[] = "#383a42"; static const char sel_bg[] = "#e1e3ea"; static const char sel_border[] = "#225588"; static const char urg_fg[] = "#225588"; static const char urg_bg[] = "#e1e3ea"; static const char urg_border[] = "#000c18"; static const char *colors[][3] = { [SchemeNorm] = {norm_fg, norm_bg, norm_border}, // unfocused wins [SchemeSel] = {sel_fg, sel_bg, sel_border}, // the focused win }; /* tagging */ static const char *tags[] = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}; static const Rule rules[] = { /* class instance title tags mask isfloating isterminal noswallow monitor */ {"St", NULL, NULL, 0, 0, 1, 0, -1}, {NULL, NULL, "Event Tester", 0, 0, 0, 1, -1}, /* xev */ }; static const float mfact = 0.50; static const int nmaster = 1; static const int resizehints = 0; static const int lockfullscreen = 1; static const Layout layouts[] = { /* symbol arrange function */ {"[]=", tile}, /* first entry is default */ {"><>", NULL}, /* no layout function means floating behavior */ // {"[M]", monocle}, }; /* 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 | ControlMask | ShiftMask, KEY, toggletag, {.ui = 1 << TAG}}, /* commands */ static char dmenumon[2] = "0"; static const char *dmenucmd[] = {"dmenucmd.sh", NULL}; static const char *termcmd[] = {"st", NULL}; static const char *screenshotcmd[] = {"screenshotsel.sh", NULL}; static const Key keys[] = { /* modifier key function argument */ {MODKEY, XK_space, spawn, {.v = dmenucmd}}, {MODKEY, XK_Return, spawn, {.v = termcmd}}, {MODKEY | ShiftMask, XK_s, spawn, {.v = screenshotcmd}}, {MODKEY, XK_b, togglebar, {0}}, {MODKEY, XK_q, killclient, {0}}, {MODKEY, XK_f, togglefullscr, {0}}, {MODKEY, XK_l, setlayout, {0}}, {MODKEY | ShiftMask, XK_space, togglefloating, {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, XK_q, quit, {0}}, {0, XF86XK_AudioMute, spawn, {.v = (const char *[]){"wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle"}}}, {0, XF86XK_AudioMicMute, spawn, {.v = (const char *[]){"wpctl", "set-mute", "54", "toggle"}}}, {0, XF86XK_AudioRaiseVolume, spawn, {.v = (const char *[]){"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "10%+"}}}, {0, XF86XK_AudioLowerVolume, spawn, {.v = (const char *[]){"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "10%-"}}}, }; static const Button buttons[] = { /* click event mask button function argument */ {ClkLtSymbol, 0, Button1, setlayout, {0}}, {ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]}}, {ClkTagBar, MODKEY, Button1, tag, {0}}, {ClkTagBar, MODKEY, Button3, toggletag, {0}}, {ClkWinTitle, 0, Button2, zoom, {0}}, {ClkStatusText, 0, Button2, spawn, {.v = termcmd}}, {ClkClientWin, MODKEY, Button1, movemouse, {0}}, {ClkClientWin, MODKEY, Button2, togglefloating, {0}}, {ClkClientWin, MODKEY, Button3, resizemouse, {0}}, {ClkTagBar, 0, Button1, view, {0}}, {ClkTagBar, 0, Button3, toggleview, {0}}, {ClkTagBar, MODKEY, Button1, tag, {0}}, {ClkTagBar, MODKEY, Button3, toggletag, {0}}, };