Available Layouts
Mango supports multiple tiling layouts:- tile - Master-stack layout (traditional dwm style)
- scroller - Horizontal scrolling layout
- vertical_scroller - Vertical scrolling layout
- grid - Grid layout
- deck - Deck layout (one window visible)
- monocle - Monocle layout (fullscreen tiling)
- center_tile - Centered master layout
- vertical_tile - Vertical master-stack layout
tagrule in config.conf:
Layout Selection Commands
setlayout
Set the layout to a specific type.Layout name (tile, scroller, grid, deck, monocle, center_tile, vertical_tile, vertical_scroller)
- Switches current tag to specified layout
- Clears fullscreen and maximized states
- Triggers rearrangement of windows
- Layout setting is per-tag (workspace)
switch_layout
Cycle through configured layouts. Example:- Cycles to next layout in sequence
- If
circle_layoutis configured in config, cycles through that list only - Otherwise cycles through all available layouts
- Clears fullscreen and maximized states
- Useful for quickly testing different layouts
Master-Stack Layout Commands
These commands apply to layouts with a master/stack structure (tile, vertical_tile, center_tile).setmfact
Set master area factor (width/height ratio).Factor value (0.1 to 0.9). If < 1.0, adds to current value. If >= 1.0, subtracts 1.0 to get absolute value.
- Adjusts ratio between master and stack areas
- Valid range: 0.1 (10%) to 0.9 (90%)
- Default is configured by
default_mfact(typically 0.55) - Setting is per-tag
incnmaster
Increase/decrease number of windows in master area.Number to add (positive) or subtract (negative)
- Changes how many windows appear in master area
- Remaining windows go to stack area
- Minimum is 0 (all windows in stack)
- Default is configured by
default_nmaster(typically 1) - Setting is per-tag
Scroller Layout Commands
These commands are specific to scroller and vertical_scroller layouts.set_proportion
Set proportion (width/height) of focused window in scroller layout.Proportion value (0.0 to 1.0)
- Sets width (horizontal scroller) or height (vertical scroller) as proportion of available space
- Only works in scroller/vertical_scroller layouts
- Does not work in overview mode
- Ignored if only one window and
scroller_ignore_proportion_single=1 - Window remembers its proportion setting
switch_proportion_preset
Cycle through configured proportion presets. Example:- Cycles through presets defined in
scroller_proportion_preset - Only works in scroller/vertical_scroller layouts
- Does not work in overview mode
- Convenient for quickly resizing windows
scroller_stack
Stack/unstack windows in scroller layout.Direction:
LEFT, RIGHT, UP, or DOWN- Groups multiple windows into a vertical/horizontal stack
- In horizontal scroller: UP/DOWN moves window into/out of stack
- In vertical scroller: LEFT/RIGHT moves window into/out of stack
- Stacked windows share the same column/row
- Can cycle through stacked windows
- Exits fullscreen/maximized state
- Only works with windows on single tag (not global/unglobal)
Gap Commands
Control spacing between windows and screen edges.incgaps
Increase or decrease all gaps uniformly.Pixels to add (positive) or subtract (negative)
- Adjusts inner and outer gaps by same amount
- Can make gaps negative (windows overlap)
- Setting is per-monitor
incigaps
Increase or decrease inner gaps (between windows).Pixels to add (positive) or subtract (negative)
- Only affects gaps between windows
- Does not affect outer gaps (screen edges)
incihgaps
Increase or decrease inner horizontal gaps.Pixels to add (positive) or subtract (negative)
incivgaps
Increase or decrease inner vertical gaps.Pixels to add (positive) or subtract (negative)
incogaps
Increase or decrease outer gaps (screen edges).Pixels to add (positive) or subtract (negative)
incohgaps
Increase or decrease outer horizontal gaps.Pixels to add (positive) or subtract (negative)
incovgaps
Increase or decrease outer vertical gaps.Pixels to add (positive) or subtract (negative)
togglegaps
Toggle gaps on/off globally. Example:- Toggles
enablegapssetting - When off, all gaps are removed
- When on, gaps return to configured values
- Affects all monitors and tags
defaultgaps
Reset gaps to default values from config. Example:- Resets to values from config.conf:
gappih- inner horizontalgappiv- inner verticalgappoh- outer horizontalgappov- outer vertical
