Easily disable or enable Dashboard

Macworld posted a hint telling how to disable the dashboard in Tiger. Instead of typing those commands each time, I’ve created this simple shell script.

#!/bin/sh
if  [ "$0" = "enable-dashboard" ]
then
   defaults write com.apple.dashboard mcx-disabled -boolean NO
else
    defaults write com.apple.dashboard mcx-disabled -boolean ${1:-YES}
fi
killall Dock

Save this script as enable-dashboard in your command search path (/usr/local/bin is a good place) and make a link to it as disable-dashboard (ln enable-dashboard disable-dashboard).

If you run it as disable-dashboard it will disable your dashboard. Running it as enable-dashboard or disable-dashboard NO will re-enable your dashboard.

Leave a Reply

You must be logged in to post a comment.

MacMegasite is Digg proof thanks to caching by WP Super Cache!