Update config stop and start wireplumber

master-b3
Alan Johnston 1 month ago committed by GitHub
parent a2cf7d4b0a
commit e1e56af9cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1587,8 +1587,10 @@ elif [ "$1" = "-L" ]; then
fi
if ! [ -z $mic ] && [[ $mic =~ ^[+-]?[0-9]+([.][0-9]+)?$ ]] ; then
systemctl --user stop wireplumber
echo "Updating mic level to" $mic "%"
value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c ${2:0:1} set MicVolume $mic
systemctl --user start wireplumber
else
echo "Not updating mic level"
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.