Skip to content

mango-workspaces

MangoWM tag switcher module configuration.

Add it to your layout with mango-workspaces:

toml
[[bar.layout]]
monitor = "*"
right = ["mango-workspaces"]

General

FieldTypeDefaultDescription
hide-emptybooltrueHide tags that hold no clients and are not active.
min-tag-countu80Always show tags up to this one-based index, even when empty.
display-modeDisplayMode"label"What identifies each tag: its label, an icon, or nothing.
dividerstring" "Text shown between the tag label and its application icons.
app-icons-showboolfalseShow an application icon per client on each tag.
app-icons-dedupebooltrueCollapse clients that share an application to a single icon.
app-icons-fallbackstring"ld-app-window-symbolic"Icon for clients not matched by app-icon-map.
app-icons-emptystring"tb-minus-symbolic"Icon shown when a tag has no clients.
urgent-showbooltrueHighlight tags whose clients requested attention.
urgent-modeUrgentMode"workspace"Whether urgency is tracked per tag or per application.
active-indicatorActiveIndicator"background"How the active tag is marked.
tag-paddingSpacing0.5Padding around each tag button, in rem.
icon-gapSpacing0.3Spacing between application icons, in rem.
icon-sizeScaleFactor1Scale factor applied to application icons.
label-sizeScaleFactor1Scale factor applied to the tag label text.
active-colorColorValue"accent"Color of the active tag.
occupied-colorColorValue"fg-muted"Color of tags that hold clients but are not active.
empty-colorColorValue"fg-subtle"Color of empty tags.
container-bg-colorColorValue"bg-surface-elevated"Background color of the tag container.
border-showboolfalseDraw a border around the tag container.
border-colorColorValue"border-default"Border color when the border is shown.
app-icon-mapmap of string{}Window-to-icon mappings for the application icons.
tag-mapmap of WorkspaceStyle{}Per-tag icon and color overrides, keyed by one-based tag index.
left-clickWorkspaceClickAction"focus:this"Action for a left click on a tag.
middle-clickWorkspaceClickAction""Action for a middle click on a tag.
right-clickWorkspaceClickAction""Action for a right click on a tag.
scroll-upWorkspaceClickAction"focus:previous"Action for scrolling up over the tag container.
scroll-downWorkspaceClickAction"focus:next"Action for scrolling down over the tag container.
More about min-tag-count

0 shows only occupied or active tags (subject to hide-empty). A value above the compositor's tag count just shows every tag.

More about app-icon-map

Keys are glob patterns matched against a client's app id, or title: patterns matched against its title. Values are symbolic icon names.

Example

toml
[modules.mango-workspaces.app-icon-map]
"*firefox*" = "ld-globe-symbolic"
"title:*YouTube*" = "si-youtube-symbolic"
More about tag-map

Example

toml
[modules.mango-workspaces.tag-map.1]
label = "web"
icon = "ld-globe-symbolic"
color = "#4a90d9"

[modules.mango-workspaces.tag-map.2]
label = "term"
icon = "ld-terminal-symbolic"

Default configuration

toml
[modules.mango-workspaces]
hide-empty = true
min-tag-count = 0
display-mode = "label"
divider = " "
app-icons-show = false
app-icons-dedupe = true
app-icons-fallback = "ld-app-window-symbolic"
app-icons-empty = "tb-minus-symbolic"
urgent-show = true
urgent-mode = "workspace"
active-indicator = "background"
tag-padding = 0.5
icon-gap = 0.30000001192092896
icon-size = 1.0
label-size = 1.0
active-color = "accent"
occupied-color = "fg-muted"
empty-color = "fg-subtle"
container-bg-color = "bg-surface-elevated"
border-show = false
border-color = "border-default"
left-click = "focus:this"
middle-click = ""
right-click = ""
scroll-up = "focus:previous"
scroll-down = "focus:next"

[modules.mango-workspaces.app-icon-map]

[modules.mango-workspaces.tag-map]

Released under the MIT License.