foddomanoo Posted February 4, 2021 Share Posted February 4, 2021 Hi, I tried to find a solution for muting the microphone in video calls. I figured that turing down the value in system preferences works fine. So I made a workflow using AppleScript which also gives you a handy notification. on alfred_script(q) set inputVolume to input volume of (get volume settings) if inputVolume = 0 then set inputVolume to 80 tell application "BitBar" quit end tell else set inputVolume to 0 set displayNotification to "Mikrofon auf 0%" tell application "BitBar" to activate end if set volume input volume inputVolume display notification displayNotification with title "Mikrofon Stumm" delay 1 I also want to have a more persistent way of displaying the current status, so I tried to write a little script for bitbar.app. In the Script in Alfred workflow there is a command that specifically launches and quits bitbar to only display, when microphone is off. you can change the behaviour to your liking. mic_status_off=0 mic_status_off=$(osascript -e "get volume settings" | grep -c "input volume:0") if [[ $mic_status_off -eq 1 ]] then echo "mute" else echo "on" fi Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now