Create keyboard shortcuts for touch bar's functions
Solution 1:
Karabiner was created for this. It'll allow you to create a layer for your volume toggle and setting, brightness, play/pause, and everything else the function row or touch bar was able to provide - except, of course, the very custom programming some apps have the touch bar hew to.
I primarily use Karabiner for my volume:
a
: volume -s
: volume +d
: mute toggle
Solution 2:
Some options from the command line ...
osxdaily -
Mute your Mac: This turns volume to 0, effectively muting the Mac speaker output:
sudo osascript -e "set Volume 0"
Maximum volume: This sets the volume to the highest it will go:sudo osascript -e "set Volume 10"
Another source for command line brightness
- Reduce brightness -
osascript -e 'tell application "System Events"' -e 'key code 144' -e ' end tell'
- Increase brightness -
osascript -e 'tell application "System Events"' -e 'key code 145' -e ' end tell'