|
|
|
@ -2,22 +2,32 @@
|
|
|
|
|
|
|
|
|
|
/* appearance */
|
|
|
|
|
static const unsigned int borderpx = 1; /* border pixel of windows */
|
|
|
|
|
static const unsigned int gappx = 5; /* gaps between windows */
|
|
|
|
|
static const unsigned int snap = 32; /* snap pixel */
|
|
|
|
|
static const int showbar = 1; /* 0 means no bar */
|
|
|
|
|
static const int topbar = 1; /* 0 means bottom bar */
|
|
|
|
|
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 unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
|
|
|
|
|
static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */
|
|
|
|
|
static const unsigned int systrayspacing = 2; /* 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[] = { "Hack Nerd Font Mono:size=11" };
|
|
|
|
|
static const char dmenufont[] = "Hack Nerd Font Mono:size=11";
|
|
|
|
|
static const char dmenupromt[] = "Run:";
|
|
|
|
|
|
|
|
|
|
static const char col_gray1[] = "#2E3440"; // #2E3440 #222222
|
|
|
|
|
static const char col_gray2[] = "#434C5E"; // #434C5E #444444
|
|
|
|
|
static const char col_gray3[] = "#D8DEE9"; // #D8DEE9 #bbbbbb
|
|
|
|
|
static const char col_gray4[] = "#ECEFF4"; // #ECEFF4 #EEEEEE
|
|
|
|
|
static const char col_color1[] = "#8FBCBB"; // #8FBCBB #408977
|
|
|
|
|
static const char *colors[][3] = {
|
|
|
|
|
/* fg bg border */
|
|
|
|
|
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
|
|
|
|
|
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
|
|
|
|
|
/* fg bg border */
|
|
|
|
|
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
|
|
|
|
|
[SchemeSel] = { col_gray1, col_color1, col_color1 },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* tagging */
|
|
|
|
|
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
|
|
|
|
|
|
|
|
@ -42,6 +52,8 @@ static const Layout layouts[] = {
|
|
|
|
|
{ "[]=", tile }, /* first entry is default */
|
|
|
|
|
{ "><>", NULL }, /* no layout function means floating behavior */
|
|
|
|
|
{ "[M]", monocle },
|
|
|
|
|
{ "|M|", centeredmaster },
|
|
|
|
|
{ ">M>", centeredfloatingmaster },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* key definitions */
|
|
|
|
@ -57,7 +69,7 @@ static const Layout layouts[] = {
|
|
|
|
|
|
|
|
|
|
/* commands */
|
|
|
|
|
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
|
|
|
|
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
|
|
|
|
|
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_color1, "-sf", col_gray1, "-p", dmenupromt, NULL};
|
|
|
|
|
static const char *termcmd[] = { "st", NULL };
|
|
|
|
|
|
|
|
|
|
static Key keys[] = {
|
|
|
|
@ -77,6 +89,8 @@ static Key keys[] = {
|
|
|
|
|
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
|
|
|
|
|
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
|
|
|
|
|
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
|
|
|
|
|
{ MODKEY, XK_u, setlayout, {.v = &layouts[3]} },
|
|
|
|
|
{ MODKEY, XK_o, setlayout, {.v = &layouts[4]} },
|
|
|
|
|
{ MODKEY, XK_space, setlayout, {0} },
|
|
|
|
|
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
|
|
|
|
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
|
|
|
@ -85,6 +99,9 @@ static Key keys[] = {
|
|
|
|
|
{ MODKEY, XK_period, focusmon, {.i = +1 } },
|
|
|
|
|
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
|
|
|
|
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
|
|
|
|
{ MODKEY, XK_minus, setgaps, {.i = -1 } },
|
|
|
|
|
{ MODKEY, XK_equal, setgaps, {.i = +1 } },
|
|
|
|
|
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
|
|
|
|
|
TAGKEYS( XK_1, 0)
|
|
|
|
|
TAGKEYS( XK_2, 1)
|
|
|
|
|
TAGKEYS( XK_3, 2)
|
|
|
|
@ -101,8 +118,8 @@ static Key keys[] = {
|
|
|
|
|
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
|
|
|
|
static 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} },
|
|
|
|
|