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
2 points

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

permalink
report
reply
1 point

Ooh this is nicer looking than helvum.

permalink
report
parent
reply
1 point

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.

permalink
report
reply
2 points

Only Linus and Jesus know.

permalink
report
reply
1 point

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

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.2K

    Monthly active users

  • 6.4K

    Posts

  • 176K

    Comments