this post was submitted on 18 Sep 2023
0 points (NaN% liked)

Linux

47233 readers
777 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
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here