Skip to content

Instantly share code, notes, and snippets.

@thintsa
thintsa / eqtoggle.sh
Created Oct 7, 2015
This shell script toggles system wide eq using AU Lab and Sound Siphon (see e.g. https://github.com/thintsa/aulab-soundflower-equalizer-toggle) on and off on a Mac. AudioSwitcher app can be found here: https://github.com/deweller/switchaudio-osx.
View eqtoggle.sh
#!/bin/bash
number=$(ps aux | grep 'AU Lab' | wc -l)
if [ $number -gt 1 ]
then
./AudioSwitcher -s 'Built-in Output'
killall 'AU Lab'
osascript -e 'display notification "System wide EQ disabled" with title "EQ Toggle"'
else
open /Applications/Utilities/AU\ Lab.app/
./AudioSwitcher -s 'Sound Siphon Out'
You can’t perform that action at this time.