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:

systemctl --user stop pipewire
sed -i '/:target/d' ~/.local/state/wireplumber/restore-stream
systemctl --user start wireplumber

Other solution is just to reroute all active streams to the default sink:

sink="$(pactl get-default-sink)"
pactl list short sink-inputs | sed -r 's/([0-9]+).*/\1/' | while read appId; do 
    pactl move-sink-input $appId "$sink"
done
  • @LukeTS
    link
    31 year ago

    I’m not entirely sure if this can do what you need, but I like looking at the graph with qpwgraph

  • @[email protected]
    link
    fedilink
    English
    21 year ago

    Looks like your options are wireplumber (separate package) or pw-cli (looks kind of arcane). Gentoo appears to create an /etc/pipewire directory for some configuration, but your distro may be different.

  • Illecors
    link
    fedilink
    English
    11 year ago

    I’ve not played enough with pipewire, but my impression was: use pavucontrol for gui or wireplumber for cli.