From dad923469009aa1f2a301e61cb3c94628a55b57b Mon Sep 17 00:00:00 2001 From: mollusk Date: Thu, 21 Jun 2018 22:29:46 -0700 Subject: [PATCH] staticmic.sh: Change volume preset Former-commit-id: 0ac0d2c490893cee641a251225657232aaf264e6 --- staticmic.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/staticmic.sh b/staticmic.sh index 7ce1179..65fefca 100755 --- a/staticmic.sh +++ b/staticmic.sh @@ -2,7 +2,10 @@ # Run the following command to find your input device # $ pacmd list-sources | grep name -INPUTDEVICE="alsa_input.pci-0000_00_1b.0.analog-stereo 50000" -while sleep 0.1;do +LEVELS="40000" +INPUTDEVICE="alsa_input.pci-0000_00_1b.0.analog-stereo ${LEVELS}" + +echo "Keeping Mic Level Static" +while sleep 0.1;do pacmd set-source-volume ${INPUTDEVICE} done