Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Several small bash scripts to aid with pipewire scripting

License

barjac/pw-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pw-utils

Several small bash scripts to aid with pipewire scripting and debugging.

Place them in /usr/local/bin/ and use from a bash command line or in scripts.

pw-link-ls

List all active links in an easy to read format. Links are not duplicated as in the pw-link -l ouput. Links are listed with source first and destination last. e.g.

alsa_input.usb-GeneralPlus_USB_Audio_Device-00.mono-fallback:capture_MONO -> myfilter:playback_FL
alsa_input.usb-GeneralPlus_USB_Audio_Device-00.mono-fallback:capture_MONO -> myfilter:playback_FR

pw-link-del

Delete all active links. This saves a list of current links in /tmp and then loops through them using pw-link -d to delete them. Sometimes it's easier to start with no links and add only what you need.

pw-link-save [filename]

Save a list of all active links to a file which defaults to saved_links.txt unless a filename is passed to it. This also handles node names with spaces (which are a bad idea but do occasionally crop up). Output files are formatted as below:

"myfilter:capture_FL" "FDV_Mic_to_FreeDV:playback_FL"
"FDV_Mic_to_FreeDV:monitor_FL" "FreeDV:input_FL"
"alsa_input.usb-GeneralPlus_USB_Audio_Device-00.mono-fallback:capture_MONO" "myfilter:playback_FL"

This makes it easy to copy/paste any lines manually if required maybe as arguments to pw-link in a script. Note that the quotes are not mandatory unless there are spaces in a node name, however pw-link-save always adds them.

pw-link-restore <filename>

Restores links saved by pw-link-save unless nodes are either missing or otherwise in use. Failure or success messages follow each attempt for debugging.

pw-save-vols

Saves all current device volume levels into ~/.config/pipewire/saved-volumes.db

pw-restore-vols

Reads volume levels from ~/.config/pipewire/saved-volumes.db into running system.

About

Several small bash scripts to aid with pipewire scripting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages