26 lines
585 B
Bash
Executable File
26 lines
585 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
case "$1" in
|
|
-h|--help)
|
|
cat <<EOF
|
|
Usage: $(basename "$0") [-h]
|
|
|
|
Switch audio output and apply appropriate easyffects preset.
|
|
|
|
Options:
|
|
-h, --help Show this help message
|
|
--defender Enable loud speakers
|
|
--head Enable headphones
|
|
|
|
EOF
|
|
;;
|
|
--defender)
|
|
pactl set-default-sink alsa_output.pci-0000_00_1f.3.analog-stereo
|
|
easyeffects -l Defender
|
|
;;
|
|
--head)
|
|
pactl set-default-sink alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo
|
|
easyeffects -l Techno
|
|
;;
|
|
esac
|