diff --git a/utils/.local/bin/audio b/utils/.local/bin/audio new file mode 100755 index 0000000..7f0d7dc --- /dev/null +++ b/utils/.local/bin/audio @@ -0,0 +1,44 @@ +#!/usr/bin/env bash + +# available sinks listed here: pactl list sinks + +LOUD_SINK="alsa_output.pci-0000_00_1f.3.analog-stereo" +LOUD_PRESET="Defender" +HEAD_SINK="alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo" +HEAD_PRESET="Techno" + +if [ -z "$1" ]; then + echo -e "Current sink\t: $(pactl get-default-sink)" + echo -e "Loud sink\t: $LOUD_SINK" + echo -e "Loud preset\t: $LOUD_PRESET" + echo -e "Head sink\t: $HEAD_SINK" + echo -e "Head preset\t: $HEAD_PRESET" + exit +fi + +if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + cat <