#!/bin/bash OUT="$(pactl get-source-mute alsa_input.pci-0000_07_00.6.HiFi__hw_acp__source | cut -d' ' -f2)" if [ "$OUT" = "yes" ] then echo 'M' else echo 'Microphone unmuted' fi