Skip to Content
mangobar

PulseAudio

Options and usage for the PulseAudio module in mangobar.

Shows the PulseAudio volume (the "volume" module, with ALSA fallback), mute state and Bluetooth marker. Updates immediately on external changes via PulseAudio events.

"modules-right": ["pulseaudio"],

"pulseaudio": {
    "format": "{icon} {volume}% {bt}",
    "format-muted": " {volume}% {bt}",
    "icons": ["", "", "", "", "", "", "", ""],
    "icon-bluetooth": "󰂯",
    "scroll-step": 5,
    "max-volume": 150
}

Options

OptionTypeDefaultDescription
formatstring—Normal format (see placeholders)
format-mutedstring—Format used while muted
iconsstring array—Icons shown by volume level
icon-mutedstring—Icon used when muted
icon-bluetoothstring—Bluetooth marker shown when the active sink is a BT device
scroll-stepnumber5Percentage points to change per wheel tick
max-volumenumber100Maximum volume percent reachable by scrolling
on-scroll-up / on-scroll-downstring—Custom commands that replace the built-in wheel handling

The module controls the default sink directly through mangobar's PulseAudio connection. Volumes above 100% are displayed as their actual value. Configuring either scroll command replaces both built-in scroll directions; commands may use the other common action options such as on-click.

Placeholders

PlaceholderDescription
{} / {volume} / {percent}Volume percent
{icon}Icon selected from the icons array by level
{bt} / {bluetooth}Bluetooth marker (empty when not a BT sink)

Styling

#volume {
  background: linear-gradient(to top, #e3ac2b, mix(#e3ac2b, #fbf1c7, 0.3));
  color: #1b1a1a;
}

Last updated on

On this page