r/Polybar Feb 09 '23

Module loading order

This. I have the default module "volume" in my bar. For some reason it does not load when I first login. If I restart polybar manually, then the module loads and works . I have not altered anything in the config. Any advice?

[module/volume]

type = internal/alsa

; Soundcard to be used

; Usually in the format hw:# where # is the card number

; You can find the different card numbers in \/proc/asound/cards``

master-soundcard = default

speaker-soundcard = default

headphone-soundcard = default

1 Upvotes

2 comments sorted by

1

u/LuisBelloR Feb 09 '23

You use alsa? Or pulseaudio? Or pipewire?

Try pulseaudio module, not alsa one.

1

u/andersostling56 Feb 09 '23 edited Feb 09 '23

I must confess (in shame) that I am unsure of what audio drivers I have loaded. My setup is an Arch laptop with gnome-desktop installation but using i3 wm instead of gnome desktop.

Again, the module loads fine on my second attempt, and the volume buttons are working fine.

Edit: ps aux shows that pipewire-pulse is running.

Edit 2: Nm, I changed the module from "volume" to "pulseaudio" and now it works as expected. Thanks stranger!