osascript -e "set volume with output muted"
osascript -e "set volume without output muted"
osascript -e "output muted of (get volume settings)"
I use the alt - m keystroke with skhd to mute/unmute via a bash script using these commands :
#!/bin/bash
current=$(osascript -e "output muted of (get volume settings)")
if [ "$current" == "true" ]; then
osascript -e "set volume without output muted"
else
osascript -e "set volume with output muted"
fi
I use the alt - m keystroke with skhd to mute/unmute via a bash script using these commands :
#!/bin/bash current=$(osascript -e "output muted of (get volume settings)") if [ "$current" == "true" ]; then osascript -e "set volume without output muted" else osascript -e "set volume with output muted" fi
Thank you!
Great solution - Short and to the point!
Thank you!