Implement cyclelayout

This commit is contained in:
Dita Aji Pratama 2024-12-24 10:46:46 +07:00
parent aefae1c570
commit 8a560950b5

View File

@ -106,11 +106,6 @@ static const char *top[] = { "kitty" , "htop" , NULL };
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_BackSpace, view, {0} },
{ MODKEY, XK_a, view, {.ui = ~0} }, // Select all tags. Cancel it with `MODKEY + [tag key]`.
{ MODKEY|Mod1Mask, XK_p, tag, {.ui = ~0} }, // Pin current window to all tags. Cancel it with `MODKEY + Shift + [tag key]`.
@ -148,6 +143,8 @@ static const Key keys[] = {
{ MODKEY|ControlMask|ShiftMask, XK_Left, shifttag, {.i = -1} },
{ MODKEY|ControlMask|ShiftMask, XK_Right, shifttag, {.i = +1} },
{ MODKEY|Mod1Mask, XK_v, cyclelayout, {0} },
{ MODKEY, XK_w, killclient, {0} },
{ MODKEY|ShiftMask, XK_q, quit, {0} },