This is a tutorial on how to make Pipewire work on Void Linux. Not sure how to structure this but here we go
xbps-install dbus pipewire wireplumber elogind turnstile psmisc
first things first: we'll have to configure turnstile
Turnstile makes user services work on non-systemd distros such as Void. This is important for dbus and pipewire to work
in /etc/turnstile/turnstiled.conf
change this option from "yes" to "no":
manage_rundir = no
then we'll have to enable dbus and turnstile system services:
ln -s /etc/sv/{dbus,turnstiled}
make sure these directories exist:
then link these files:
Linking the first file will make the user dbus service work. Last two are for making pipewire run correctly
now you'll have to make 2 files for the pipewire user service to work
here's the contents of the first one: ~/.config/service/pipewire/run
and the second one: ~/.config/service/pipewire/finish
And now you should be good to go! Althought there's still one more thing left
turnstile has a special command on Void: turnstile-update-runit-env
. This command can add variables from your environment to user services. Here's an example:
turnstile-update-runit-env WAYLAND_DISPLAY DISPLAY NIRI_SOCKET XDG_CURRENT_DESKTOP XCURSOR_SIZE XCURSOR_THEME
you should make this command run after your environment starts. For example, if you're using a window manager, then put this command in its config. More variables may be needed but this should make everything work for the most part