stream.rules in client.conf is not applied to pipewire alsa clients.
~/.config/pipewire/client.conf.d/10-local.conf
stream.rules = [
{
matches = [
{
media.class = Stream/Output/Audio
}
]
actions = {
update-props = {
target.object = default-sink
}
}
}
]
This is ignored by pipewire alsa clients.
I had to configure target.object with
pcm.!default {
type pipewire
playback_node "default-sink"
#capture_node "-1"
hint {
show on
description "Default ALSA Output (currently PipeWire Media Server)"
}
}
ctl.!default {
type pipewire
}
in ~/.asoundrc
.