staticmic.sh: use pactl instead of pacmd

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 14:59:00 -04:00
co-authored by Claude Opus 5.5
parent 623dc9cf5d
commit d113286e0e
+3 -3
View File
@@ -1,11 +1,11 @@
#!/bin/sh
# Run the following command to find your input device
# $ pacmd list-sources | grep name
# $ pactl list short sources
LEVELS="30000"
INPUTDEVICE="alsa_input.pci-0000_00_1b.0.analog-stereo ${LEVELS}"
INPUTDEVICE="alsa_input.pci-0000_00_1b.0.analog-stereo"
echo "Keeping Mic Level Static"
while sleep 0.1;do
pacmd set-source-volume ${INPUTDEVICE}
pactl set-source-volume "${INPUTDEVICE}" "${LEVELS}"
done