Add grid patch

This commit is contained in:
2023-03-08 10:04:49 +05:00
parent d803aa3963
commit 438b929bca
2 changed files with 30 additions and 0 deletions

View File

@@ -65,11 +65,13 @@ static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
#include "layouts.c"
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
{ "HHH", grid },
};
/* key definitions */
@@ -125,6 +127,7 @@ static Key keys[] = {
{ SUPERKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ SUPERKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ SUPERKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ SUPERKEY, XK_g, setlayout, {.v = &layouts[3]} },
/* { SUPERKEY, XK_space, setlayout, {0} }, */
{ SUPERKEY|ShiftMask, XK_space, togglefloating, {0} },
{ SUPERKEY, XK_0, view, {.ui = ~0 } },