Created
October 13, 2015 10:22
-
-
Save parsingphase/48d7b1ee53ef6af9f002 to your computer and use it in GitHub Desktop.
Turn OSX dock bouncing on or off
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 | |
param=$1 | |
param=$(echo "$param" | tr '[:lower:]' '[:upper:]') | |
case $param in | |
"ON") | |
state=TRUE | |
;; | |
"TRUE") | |
state=TRUE | |
;; | |
"OFF") | |
state=FALSE | |
;; | |
"FALSE") | |
state=FALSE | |
;; | |
*) | |
echo 'Run with ON or OFF as param' | |
exit 1 | |
;; | |
esac | |
defaults write com.apple.dock no-bouncing -bool $state | |
killall Dock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment