[SOLVED] Where does pipewire store its properties?
For example, I set firefox to some custom sink using pavucontrol, but now I want to reset it to default. How can I do this without using pavucontrol, just cli?
EDIT:
Found it :) they are in ~/.local/state/wireplumber/restore-stream
. To remove target sink, pipewire and wireplumber have to be restarted:
<span style="color:#323232;">systemctl --user stop pipewire
</span><span style="color:#323232;">sed -i '/:target/d' ~/.local/state/wireplumber/restore-stream
</span><span style="color:#323232;">systemctl --user start wireplumber
</span>
Other solution is just to reroute all active streams to the default sink:
<span style="color:#323232;">sink="$(pactl get-default-sink)"
</span><span style="color:#323232;">pactl list short sink-inputs | sed -r 's/([0-9]+).*/1/' | while read appId; do
</span><span style="color:#323232;"> pactl move-sink-input $appId "$sink"
</span><span style="color:#323232;">done
</span>