diff --git a/staticmic.sh b/staticmic.sh index 555176a..15f6c18 100755 --- a/staticmic.sh +++ b/staticmic.sh @@ -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