staticmic.sh: use pactl instead of pacmd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user