maomaowm/docs/visuals/status-bar.md
2026-07-04 09:54:16 +08:00

2.5 KiB

title description
Status Bar Configure Waybar for mangowm.

Module Configuration

mangowm is compatible with Waybar's ext/workspaces module (Wayland standard) or the dwl/tags module. We recommend ext/workspaces for the best experience.

Tip: You can also use the dwl/tags module, but ext/workspaces provides better integration with mangowm's features. The ext/workspaces module requires Waybar > 0.14.0.

config.jsonc

Add the following to your Waybar configuration:

{
  "modules-left": [
    "ext/workspaces",
    "mango/layout",
    "mango/window"
  ],
  "modules-right": [
    "mango/language",
    "mango/keymode",
  ],
  "ext/workspaces": {
    "format": "{icon}",
    "ignore-hidden": true,
    "on-click": "activate",
    "on-click-right": "deactivate",
    "sort-by-id": true
  },
    "mango/keymode": {
    	"format": "[{default}]",
    	"format-default": " Default",
        "format-test": " Test",
    },
    "mango/window": {
      "format": "{}",
      "icon": true,
      "on-click":"bash ~/.config/mango/scripts/screenshot.sh",
      "on-click-right":"bash ~/tool/shotTranslate.sh shot",
	    "icon": false,
	    "icon-size": 20
    },
    "mango/layout": {
        "format": "{}",
        // "format-S": "Scroller",
        // "format-T": "Tile",
    },
    "mango/language": {
    "format": "{short}",
    "format-us": "󰌌 US",
    "format-ru": "󰌌 RU"
    },
}

Styling Example

You can style the tags using standard CSS in style.css.

style.css

#workspaces {
  border-color: #c9b890;
  background: rgba(40, 40, 40, 0.76);
}

#workspaces button {
  background: none;
  color: #ddca9e;
}

#workspaces button.hidden {
  color: #9e906f;
  background-color: transparent;
}

#workspaces button.visible {
  color: #ddca9e;
}

#workspaces button:hover {
  color: #d79921;
}

#workspaces button.active {
  background-color: #ddca9e;
  color: #282828;
}

#workspaces button.urgent {
  background-color: #ef5e5e;
  color: #282828;
}

#window {
  background-color: #CA9297;
  color: #282828;
}

window#waybar.empty #window {
    background: none;
    margin: 0px;
    padding: 0px;
}

#layout {
  background-color: #CA9297;
  color: #282828;
}

#language {
  background-color: #CA9297;
  color: #282828;
}

#keymode {
  background-color: #CA9297;
  color: #282828;
}

Complete Configuration Example

Tip: You can find a complete Waybar configuration for mangowm at waybar-config.