mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-11-22 06:59:49 -05:00
Function to cycle through available layouts.
This commit is contained in:
parent
46dcc997e2
commit
879021bd94
2 changed files with 22 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ static const Layout layouts[] = {
|
|||
{ "[]=", tile },
|
||||
{ "><>", NULL }, /* no layout function means floating behavior */
|
||||
{ "[M]", monocle },
|
||||
{ NULL, NULL },
|
||||
};
|
||||
|
||||
/* monitors
|
||||
|
|
@ -149,6 +150,8 @@ static const Key keys[] = {
|
|||
{ MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} },
|
||||
{ MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} },
|
||||
{ MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} },
|
||||
{ MODKEY|WLR_MODIFIER_CTRL, XKB_KEY_comma, cyclelayout, {.i = -1 } },
|
||||
{ MODKEY|WLR_MODIFIER_CTRL, XKB_KEY_period, cyclelayout, {.i = +1 } },
|
||||
{ MODKEY, XKB_KEY_space, setlayout, {0} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} },
|
||||
{ MODKEY, XKB_KEY_e, togglefullscreen, {0} },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue