Configure cyclelayout
This commit is contained in:
parent
bd79444b3c
commit
e46e3b5016
5
config.h
5
config.h
@ -80,6 +80,7 @@ static const Layout layouts[] = {
|
||||
{ "|M|", centeredmaster },
|
||||
{ "><>", NULL }, /* no layout function means floating behavior */
|
||||
{ "[M]", monocle },
|
||||
{ NULL, NULL},
|
||||
};
|
||||
static const Layout* monocleLayout = &layouts[5];
|
||||
|
||||
@ -119,6 +120,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|ControlMask, XK_comma, cyclelayout, {.i = -1 } },
|
||||
{ MODKEY|ControlMask, XK_period, cyclelayout, {.i = +1 } },
|
||||
{ MODKEY, XK_space, setlayout, {0} },
|
||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
||||
{ MODKEY|ShiftMask, XK_f, togglefullscr, {0} },
|
||||
@ -168,7 +171,7 @@ 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, Button1, cyclelayout, {.i = -1 } },
|
||||
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
||||
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
||||
{ ClkStatusText, 0, Button2, spawn, SHCMD("gsimplecal") },
|
||||
|
Loading…
Reference in New Issue
Block a user