Last active
January 24, 2016 12:35
-
-
Save cyrus-and/76e2b92bfc16d65617ff to your computer and use it in GitHub Desktop.
Mute audio on logout on Mac OS X
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 | |
# Install: | |
# 1. wget -P ~ https://gist.githubusercontent.com/cyrus-and/76e2b92bfc16d65617ff/raw/921a91b765944f0aed3cf85490631ac58182037d/.muteonlogout.plist | |
# 2. chmod +x ~/.muteonlogout.plist | |
# 3. sudo defaults write com.apple.loginwindow LogoutHook ~/.muteonlogout.plist | |
# Uninstall: | |
# sudo defaults delete com.apple.loginwindow LogoutHook | |
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