# Polybar's \`pulseaudio\` not working

**URL:** <https://forum.endeavouros.com/t/polybars-pulseaudio-not-working/48613>\
**Category:** i3-wm\
**Created:** [December 6, 2023, 3:23am UTC](https://forum.endeavouros.com/t/polybars-pulseaudio-not-working/48613 "2023-12-06T03:23:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NotABot](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/notabot/32/85671_2.png) [@NotABot](https://forum.endeavouros.com/u/NotABot)\
**Post date:** [December 6, 2023, 3:23am UTC](https://forum.endeavouros.com/t/polybars-pulseaudio-not-working/48613/1 "2023-12-06T03:23:48Z")

</div>

# Issue: Absence of `[module/pulseaudio]` Display in Polybar

Greetings everyone! I trust you’re all doing well.

It’s been a while since I last reached out for assistance, as everything had been running smoothly on my **Endeavour OS (i3WM)** setup.

## Overview of Configuration:

I’m utilizing a dual monitor setup, and to initialize Polybar on both monitors, I rely on the following startup script:

```bash
#!/usr/bin/env bash

polybar-msg cmd quit

if type "xrandr"; then
  for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
    MONITOR=$m polybar --reload bar1 &
  done
else
  polybar --reload bar1 &
fi

```

Moreover, the excerpt below from `config.ini` showcases the configuration details for the `pulseaudio` module:

```ini
...
...
modules-right = filesystem custom_mem cpu pulseaudio battery date
...
...
[module/pulseaudio]
type = internal/pulseaudio
click-right = pavucontrol

format-volume-foreground = ${colors.primary} 
format-volume = <ramp-volume> <label-volume>
format-muted = <label-muted> <label-volume>

label-volume = %{T4}%percentage%%%{T-}
label-volume-foreground = ${colors.foreground}
label-muted = 
label-muted-foreground = ${colors.disabled}

ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-volume-3 = 
ramp-volume-4 = 
ramp-volume-5 = 
...
...

```

## Issue Description:

Despite maintaining the same configuration for the past few months without any alterations to the Polybar setup, the `[module/pulseaudio]` has abruptly ceased to display. While all other modules continue to function as expected, this particular module has vanished from view. I’ve diligently reviewed the configuration but have been unable to pinpoint the cause of this behavior. Additionally, I’m confident that all necessary dependencies, such as `libpulse`, required to utilize and exhibit this module, are installed.

If you’re inclined to review my [**Dotfiles**](https://github.com/AmaaelTyrneaMitore/Dotfiles), please feel free to do so.

Attached is an image depicting the issue encountered:  
 ![1701832483-screenshot](https://forum.endeavouros.com/uploads/default/optimized/3X/3/a/3aac4b32dd5f481397dbd576380e2ba19d5b25ca_2_690x9.png)

Thank you for your time and assistance in resolving this matter!

---

<div class="post-metadata">

**Author:** ![eso](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/eso/32/36767_2.png) [@eso](https://forum.endeavouros.com/u/eso)\
**Post date:** [December 6, 2023, 7:19pm UTC](https://forum.endeavouros.com/t/polybars-pulseaudio-not-working/48613/2 "2023-12-06T19:19:09Z")

</div>

Seasonal greetings @NotABot ,  
(In terminal:)

```auto
killall polybar
polybar bar1

```

told you why pulseaudio was blocked.

```auto
format-volume-prefix = "VOL "
format-volume-foreground = ${colors.primary} 
format-volume = <ramp-volume> <label-volume>
format-muted-prefix = "  "
format-muted-prefix-foreground = "#ff0000"
format-muted-foreground = ${colors.foreground}
format-muted-background = ${colors.background}

```

These lines cover the problem.

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [December 9, 2023, 8:52am UTC](https://forum.endeavouros.com/t/polybars-pulseaudio-not-working/48613/3 "2023-12-09T08:52:18Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
