Tag Rules
Tag rules allow you to configure per-tag (workspace) settings like default layouts.Syntax
Available Properties
Tag ID (1-9)
Default layout for the tagAvailable layouts:
tile- Master-stack tilingscroller- Horizontal scrolling layoutgrid- Grid layoutdeck- Single window deckmonocle- Fullscreen single windowcenter_tile- Centered master with stacksvertical_tile- Vertical master-stackvertical_scroller- Vertical scrolling layout
Tag Rule Examples
Default Configuration
Layer Rules
Layer rules allow you to configure behavior for specific layer surfaces (overlays, panels, application launchers, etc.).Syntax
Available Properties
Override animation type when opening the layerValues:
slide, zoomOverride animation type when closing the layerValues:
slide, zoomName of the layer surface to targetCommon layer names:
rofi- Rofi application launcherwaybar- Waybar status barmako- Mako notification daemon- Application-specific names
Layer Rule Examples
Finding Layer Names
To find the layer name of an application:- Check the application’s Wayland implementation (usually in documentation)
- Use compositor debugging tools
- Look at the application’s source code for layer-shell implementation
| Application | Layer Name |
|---|---|
| Rofi | rofi |
| Waybar | waybar |
| Mako | mako |
| Dunst | dunst |
| Swaylock | swaylock |
Layout Descriptions
Tile
Traditional master-stack layout. One or more master windows on the left, stack on the right. Layout-specific settings:Scroller
Horizontal scrolling layout where windows are arranged side-by-side. Layout-specific settings:Grid
Arranges windows in a grid pattern.Deck
Stacks windows like a deck of cards, showing only the top window.Monocle
Maximizes a single window at a time.Center Tile
Centered master area with stack windows on both sides.Vertical Tile
Master-stack layout with vertical split (master on top).Vertical Scroller
Vertical scrolling layout where windows are stacked vertically.Layout-Specific Configuration
Master-Stack Layouts
Scroller Layouts
Keybindings for Scroller
Complete Rules Example
Switching Layouts
You can switch layouts at runtime:Future Rule Types
Mango may support additional rule types in future versions, such as:
- Window rules based on app_id or title
- Monitor-specific rules
- Per-window opacity and blur settings
