HOW TO: Disable OS X Dashboard

I rarely use Dashboard in OS X, so I hunted around to find out how to turn the Dashboard off in OSX:

To turn Dashboard off:
# defaults write mcx-disabled -boolean YES

To turn Dashboard on:
# defaults write mcx-disabled -boolean NO

You have to restart the Dock after making either change for it to take effect:
# killall Dock

Share on FacebookTweet about this on TwitterShare on LinkedInEmail this to someone