Audio on Void Linux

[Void Linux]

Since it's a beautifully minimalist distro, it does come with no audio by default :(

Plagiarized from Void's Handbook on how to really Pipe your Wire

D-Bus

PipeWire requires an active D-Bus user session bus. If you have D-Bus setup already then move on, but you likely don't have it already so get it.

sudo xbps-install dbus

Enable it & create a Machine ID

sudo ln -s /etc/sv/dbus /var/service/
sudo dbus-uuidgen --ensure=/etc/machine-id

Link it to some shit

sudo mkdir -p /var/lib/dbus
sudo ln -sf /etc/machine-id /var/lib/dbus/machine-id

Make sure you're starting with dbus-run-session on minimalist WMs btw, like for dwm it'd be:

exec dbus-run-session dwm

elogind

Because maybe you're on a minimalist window manager or something,
you need elogind to create your XDG_RUNTIME_DIR

sudo xbps-install elogind

Then link it

sudo ln -s /etc/sv/elogind /var/service/

Install PipeWire

sudo xbps-install pipewire

Session management

According to the Void docs, the only session manager available is WirePlumber.
It's pulled as a dependency if you already installed PipeWire,
so we should create this symlink for a system-wide configuration:

sudo mkdir -p /etc/pipewire/pipewire.conf.d
sudo ln -s /usr/share/examples/wireplumber/10-wireplumber.conf /etc/pipewire/pipewire.conf.d/

PulseAudio interface

Apparently most applications are dumb as shit and speak to PipeWire's PulseAudio interface.
Assuming you don't have that archaic thing installed, just do:

mkdir -p /etc/pipewire/pipewire.conf.d
ln -s /usr/share/examples/pipewire/20-pipewire-pulse.conf /etc/pipewire/pipewire.conf.d/

...For a system-wide configuration, yes.


If you're using a minimalist window manager or something, you need to autostart it. Doesn't run automatically so womp womp. For X11 WMs you can just add it to your .xinitrc like:

# audio
pipewire &

I know I'm piping my wire rn.

Also I really think it's based to just use pulsemixer to configure your audio.