I can't find the default keybinding to mute the sound in OS X El Capitan. I just want the whole OS to be muted.
Running osascript -e "set Volume X"
from the terminal is not what I want to do. Because I need to store the current volume somewhere and launch a script on a specific key. It just seems like wrong approach.
F10 and any combinations of it with Command or Control did not help.
Best Answer
Try toggling the F-key functionality in System Prefs > Keyboard > Keyboard
If your generic keyboard has no Mac-compliant Fn key, it may be your only solution. The hardware keys don't transmit in the same way as 'regular' keys.
This script works for Yosemite, but not El Capitan…
An additional possibility could be to switch to another Sound output, one that is currently silenced, like, for example, Digital Out.
From Using Apple Script to Manage Sound Output Selection
You could save this as a Service in Automator, then call it with a hot-key