I am using ArchLinux with i3. I recently switched from PulseAudio to Pipewire, since I want to switch also to Wayland and Sway in the near future.
For now, Pipewire works perfectly. Nevertheless, I have a little problem.
I am using audio devices with the same Description, so I cannot distinguish them in Pavucontrol for example. Using Pulse, I wrote an update-sink-proplist statement into my local default.pa file.
Does someone know, how to do this with Pipewire, i.e. how can I change the description of a device, if this device is connected.
Currently, I am using the default configuration of Pipewire.
My approaches:
I guess this probably works with pw-metadata, but I did not find the right command.
I added the following in ~/.config/pipewire/media-session.d/alsa-monitor.conf
{
matches = [
{
node.name = "~^alsa_output.pci-0000_00_1f.3.output_analog-stereo$"
}
]
actions = {
update-props = {
device.description = "Laptop"
}
}
}
This changed the corresponding entry in the list of properties in the output of pactl list sinks, but not the actual description. Indeed, the output is
Sink #45
...
Name: alsa_output.pci-0000_00_1f.3.output_analog-stereo
Description: Built-in Audio Analog Stereo Output
...
Properties:
...
device.description = "Laptop"
...
Thanks for your help.