this post was submitted on 18 Sep 2023
36 points (97.4% liked)

Linux

48081 readers
796 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

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
top 5 comments
sorted by: hot top controversial new old
[–] TropicalDingdong@lemmy.world 2 points 1 year ago

Only Linus and Jesus know.

[–] nyan@lemmy.cafe 2 points 1 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.

[–] LukeTS@lemmy.world 2 points 1 year ago (1 children)

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

[–] boringbisexual@lib.lgbt 1 points 1 year ago

Ooh this is nicer looking than helvum.

[–] Illecors@lemmy.cafe 1 points 1 year ago

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