Understanding Tags
Tags in Mango are similar to workspaces or virtual desktops in other window managers, but more flexible:- Windows can be assigned to multiple tags simultaneously
- You can view multiple tags at once
- Each monitor maintains its own tag selection
- Tags are numbered 1-9 by default
Tag Viewing Commands
view (bind_to_view)
Switch to a specific tag.Tag number (1-9) or tag mask
Additional flags for behavior
- Switches to the specified tag (workspace)
- If already on that tag and
view_current_to_back=1, switches to previous tag - Hides windows from other tags
- Shows windows assigned to the new tag
- Maintains tag history for easy switching
viewtoleft
Switch to the tag on the left (previous tag).Additional flags
- Switches to previous tag (n-1)
- Does not wrap around (stops at tag 1)
- Does not work in overview mode
- Does not work if viewing all tags (tag 0)
viewtoright
Switch to the tag on the right (next tag).Additional flags
- Switches to next tag (n+1)
- Does not wrap around (stops at tag 9)
- Does not work in overview mode
- Does not work if viewing all tags
viewtoleft_have_client
Switch to the previous tag that has windows.Additional flags
- Searches leftward for a tag with windows
- Skips empty tags
- Stops at tag 1
- Does not work in overview mode
- Useful for quickly navigating between active workspaces
viewtoright_have_client
Switch to the next tag that has windows.Additional flags
- Searches rightward for a tag with windows
- Skips empty tags
- Stops at tag 9
- Does not work in overview mode
- Useful for quickly navigating between active workspaces
toggleview
Toggle visibility of a tag (view multiple tags).Tag number to toggle (0 for all tags)
- Adds or removes tag from current view
- Allows viewing multiple tags simultaneously
- Pass 0 to toggle all tags
- Useful for monitoring multiple workspaces
- Does not change if result would show no tags
comboview
Combine multiple tags into view.Tag mask to add to view
- First invocation switches to specified tag
- Subsequent invocations add tags to view
- Creates custom workspace combinations
- Resets on single tag view
viewcrossmon
Switch to a tag on a different monitor.Monitor name/spec
Tag number
- Focuses specified monitor
- Switches to specified tag on that monitor
- Useful for multi-monitor setups
Window Tagging Commands
tag
Move focused window to a specific tag and follow it.Tag number (1-9) or tag mask
Additional flags
- Moves focused window to specified tag
- Switches view to that tag (follows window)
- Exits scroller stack if window was in one
- Clears fullscreen state of conflicting windows
- Updates tag status and arrangement
tagsilent
Move focused window to a specific tag without following it.Tag number (1-9) or tag mask
- Moves window to specified tag
- Does NOT switch view to that tag
- Useful for organizing windows without disrupting workflow
- Window disappears from current view
- Focuses next window in current tag
tagtoleft
Move focused window to previous tag and follow it.Additional flags
- Moves window to tag n-1
- Switches view to that tag
- Stops at tag 1 (does not wrap)
- Only works if currently viewing exactly one tag
tagtoright
Move focused window to next tag and follow it.Additional flags
- Moves window to tag n+1
- Switches view to that tag
- Stops at tag 9 (does not wrap)
- Only works if currently viewing exactly one tag
toggletag
Toggle window’s assignment to a tag.Tag number to toggle (INT_MIN for all tags)
- Adds or removes tag from window’s tag assignment
- Window can be visible on multiple tags
- Pass INT_MIN to toggle between current tag and all tags
- Useful for making windows appear in multiple workspaces
- Does not change if result would assign no tags
tagmon
Move focused window to a different monitor.Direction:
LEFT, RIGHT, or monitor name via arg->vMonitor name/spec
Tag number on target monitor (0 to preserve current tags)
Flag: 1 to preserve tags, 0 to use arg->ui
- Moves window to specified monitor
- Optionally changes window’s tag on target monitor
- Switches view to target monitor and tag
- Adjusts window size proportionally for new monitor
- Centers floating windows on target monitor
- Warps cursor if
warpcursor=1
tagcrossmon
Move window to a tag on a different monitor.Monitor name/spec
Tag number
- If monitor matches current monitor, acts like
tag - Otherwise moves window to specified monitor and tag
- Combines monitor switch with tag assignment
Overview Mode
toggleoverview
Toggle overview mode (show all windows).Mode flag (1 for tab mode)
- Shows all windows across all tags in a grid
- Temporarily exits floating and fullscreen states
- Click or focus window to exit overview and switch to that tag
- Backs up window states and restores them on exit
- In tab mode with
ov_tab_mode=1, cycles through windows - Does not activate if no windows visible on monitor
- Maintains tag history for proper restoration
Tag Configuration
Tags are configured per-monitor in config.conf:Advanced Tag Features
Cross-Tag Focus
Enable automatic tag switching when focusing:View History
Mango maintains view history per monitor:- Previous tag is tracked via
pertag->prevtag - Pressing current tag again returns to previous (if
view_current_to_back=1)
