Replace PulseAudio for all users
I was a pulseaudio-modules-bt user.
But it's no longer in development and is urging the move to PipeWire.
I want to replace PulseAudio with PipeWire and use aptX HD on my Bluetooth device.
After reading Arch WIki and the tutorials, I found that I should enable the systemd service.
However, the service is installed in /usr/lib/systemd/user
, so I have to add --user to the systemd command.
I have multiple users in my environment. Is there a way to enable PipeWire for all users at once?
I've come up with a dirty one liner like this, but it's not efficient.
cut -d: -f1,3 /etc/passwd | egrep ':[0-9]{4}$' | cut -d: -f1 | xargs -I{} sudo -E -u {} systemctl --user enable pipewire.service pipewire-pulse.service