sound utility
This commit is contained in:
25
utils/.local/bin/sound
Executable file
25
utils/.local/bin/sound
Executable file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/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
|
||||||
Reference in New Issue
Block a user