Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install paswitch-rs
It will make the paswitch-rs command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall paswitch-rs uninstalls.
Back to the crate overview .
Readme
paswitch-rs
Wrapper around paswitch to allow for swapping to a pulse source by an attribute other than its id.
Prerequisites
Rust 2021
pactl
paswitch
Installation
Via git
cargo install -- git https://github.com/RobertPlant/paswitch-rs -- branch master
Via crates.io
cargo install paswitch-rs
On Archlinux
yay paswitch- rs
Examples:
Swap all output to a named device:
paswitch- rs Fiio
List available devices:
paswitch- rs - - list
Interactively select an output device:
paswitch- rs - - interactive