sound utility

This commit is contained in:
2026-02-26 22:28:12 +08:00
parent b9635a5697
commit f7b59f9d81

25
utils/.local/bin/sound Executable file
View 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