aswp stands for audio swap. This script uses pactl
to swap between two
audio devices. You can setup the devices by running aswp config
.
Run the script as is shown below and follow the instructions:
aswp config
You can bind shortcut to this script so you can swap your audio devices by a keybord shortcut.
bash
- used for running the script, other shells will be propably finepactl
- used for getting the information about the devices and to swap themgawk
- GNU awk, used for getting the useful information from thepactl
outputsed
- used for escaping variables for regex patternsnotify-send
- used for notifications