|
|
@@ -43,6 +43,7 @@ static const Layout layouts[] = { |
|
|
|
{ "[M]", monocle }, |
|
|
|
{ "[]=", tile }, /* first entry is default */ |
|
|
|
{ "><>", NULL }, /* no layout function means floating behavior */ |
|
|
|
{ "HHH", grid }, |
|
|
|
}; |
|
|
|
|
|
|
|
/* key definitions */ |
|
|
@@ -61,10 +62,13 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() |
|
|
|
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; |
|
|
|
static const char *termcmd[] = { "st", NULL }; |
|
|
|
|
|
|
|
#include "movestack.c" |
|
|
|
static Key keys[] = { |
|
|
|
/* modifier key function argument */ |
|
|
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } }, |
|
|
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, |
|
|
|
{ MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, |
|
|
|
{ MODKEY|ControlMask, XK_space, focusmaster, {0} }, |
|
|
|
{ MODKEY, XK_b, togglebar, {0} }, |
|
|
|
{ MODKEY, XK_j, focusstackvis, {.i = +1 } }, |
|
|
|
{ MODKEY, XK_k, focusstackvis, {.i = -1 } }, |
|
|
@@ -74,6 +78,8 @@ static Key keys[] = { |
|
|
|
{ MODKEY, XK_d, incnmaster, {.i = -1 } }, |
|
|
|
{ MODKEY, XK_h, setmfact, {.f = -0.05} }, |
|
|
|
{ MODKEY, XK_l, setmfact, {.f = +0.05} }, |
|
|
|
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } }, |
|
|
|
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } }, |
|
|
|
{ MODKEY, XK_Return, zoom, {0} }, |
|
|
|
{ MODKEY, XK_Tab, view, {0} }, |
|
|
|
{ MODKEY|ShiftMask, XK_c, killclient, {0} }, |
|
|
@@ -83,6 +89,7 @@ static Key keys[] = { |
|
|
|
{ MODKEY, XK_u, setlayout, {.v = &layouts[0]} }, |
|
|
|
{ MODKEY, XK_o, setlayout, {.v = &layouts[1]} }, |
|
|
|
{ MODKEY, XK_space, setlayout, {0} }, |
|
|
|
{ MODKEY|ShiftMast, XK_g, setlayout, {.v = &layouts[5]} }, |
|
|
|
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} }, |
|
|
|
{ MODKEY, XK_0, view, {.ui = ~0 } }, |
|
|
|
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, |
|
|
|