-
Notifications
You must be signed in to change notification settings - Fork 24
setlayout
bakkeby edited this page Jun 27, 2021
·
5 revisions
Function | Expected argument | Default keybinding |
---|---|---|
setlayout | reference or 0
|
Super+space (toggles previous layout) |
setlayout
is an internal function that is used to set a layout for a workspace.
Note that contrary to dwm there are no default keybindings for setting specific layouts, you can add these yourself should you need them.
Example keybindings to set specific layouts:
{ KeyPress, MODKEY, XK_, setlayout, {.v = &layouts[0]} }, // sets tile layout
{ KeyPress, MODKEY, XK_, setlayout, {.v = &layouts[3]} }, // sets monocle layout
Refer to the layouts[]
array in config.h for layout options.
There are no external commands available for this function.
Also see:
Concepts | Configuration | Features | Flags | Functionality | Functions