Mute volume osascript -e "set volume with output muted" Unmute volume osascript -e "set volume without output muted" Is volume 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