Last active
August 29, 2015 14:01
-
-
Save christofluethi/913d9f7797795a213a4a to your computer and use it in GitHub Desktop.
Mute Audio for Mac OS X Mavericks / Yosemite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Check if any hooks already exist (these will be overwritten) | |
sudo defaults read com.apple.loginwindow LoginHook | |
sudo defaults read com.apple.loginwindow LogoutHook | |
#Add hooks for muting | |
sudo defaults write com.apple.loginwindow LogoutHook /Library/Scripts/mute-on.sh | |
sudo defaults write com.apple.loginwindow LoginHook /Library/Scripts/mute-off.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
osascript -e 'set volume without output muted' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
osascript -e 'set volume with output muted' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment