Skip to content

Instantly share code, notes, and snippets.

@parsingphase
Created October 13, 2015 10:22
Show Gist options
  • Save parsingphase/48d7b1ee53ef6af9f002 to your computer and use it in GitHub Desktop.
Save parsingphase/48d7b1ee53ef6af9f002 to your computer and use it in GitHub Desktop.
Turn OSX dock bouncing on or off
#!/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