Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: A unix script to toggle the Dashboard on and off UNIX
Tiger only hintBased on this hint, which I found quite useful, I created this bash script which toggles Dashboard's active status via the defaults write command. If the Dashboard is enabled (disabled) and you run the script, it will now be disabled (enabled). This script is for those who would rather use a Unix script than another preferences pane binary to handle things like this this ... or for those who like to muck around with Unix, like me!

I originally posted the following as a comment on the hint referred to above, but I think people might find it useful for general use and modifications or for just learning more about Unix, so here it is.

[robg adds: This script works as described, and is quite useful for other things, too. With easy edits, you could use it to set the value of any "toggleable" preferences setting, such as the one that automatically accepts video iChats. In addition, you can create your own program to toggle Dashboard using either AppleScript or Automator from the Finder. For AppleScript, just open Script Editor, and create a new one-line script: do shell script "/path/to/dash_toggle_script" (use the actual path, obviously). Save that as an application, and you have a double-clicable application to toggle the dock -- commenters will, I'm sure, enhance my example to show you the status of the Dashboard when running the script, as my simple script runs blindly.

You can also make an application using Automator. Launch the program, click on Automator in Library, then drag Run Shell Script from the Action column into the work area on the right. Leave the shell pop-up set to bash, and then replace cat with /path/to/dash_toggle_script, except use the actual path -- in my case, it was ~/bin/docktoggle. Select File: Save As and set the File Format to Application. Once saved, you'll again have a double-clickable application that you can use to toggle Dashboard on and off.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[16,429 views]  

10.4: A unix script to toggle the Dashboard on and off | 6 comments | Create New Account
Click here to return to the '10.4: A unix script to toggle the Dashboard on and off' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: A unix script to toggle the Dashboard on and off
Authored by: mike3k on Aug 11, '05 11:56:11AM
I did something similar, which I posted here a few days ago.

[ Reply to This | # ]
10.4: A unix script to toggle the Dashboard on and off
Authored by: elmimmo on Aug 11, '05 06:25:15PM

And considering that Dashboard consumes absolutely no RAM or processor cycles if you never bring it to the front, one might want to disable it in order to…?



[ Reply to This | # ]
10.4: A unix script to toggle the Dashboard on and off
Authored by: dotsandlines on Aug 11, '05 06:59:49PM

I don't have any performance problems with Dashboard, but I would like to be able to toggle all hot corners and expose function key definitions. There's a few Classic games I like to play, but I have to remember to turn them all off before I launch, or else I get chaos when I mouselook.

Is that sort of thing possible?



[ Reply to This | # ]
10.4: A unix script to toggle the Dashboard on and off
Authored by: heggaton on Aug 12, '05 11:54:41PM

Try this for a scenario... Maybe someone (other than yourself) uses dashboard extensively. Now consider that some widgets do funny things like updating files in the background - even when you're not using dashboard.

Try to imagine a person who backs up their Library folder to CD/DVD. What happens when a file size changes after a file has been burnt' but before it's validated the burn? That's right! The burn fails!

So, considering that, maybe a user *might* want to disable dashboard. What do you think eh?



[ Reply to This | # ]
10.4: A unix script to toggle the Dashboard on and off
Authored by: rspress on Aug 11, '05 09:53:26PM

It would still be nice to find a way to turn on the water drop effect on computers that don't support it.

I am totally surprised that no one has found out how to do this yet. Usually hacks like this are the first ones that pop up.



[ Reply to This | # ]
10.4: A unix script to toggle the Dashboard on and off
Authored by: bjast on Aug 12, '05 09:43:57AM

pobs:

Thanks for sharing this script.

I, like you, like to use unix whenever I can. Your script not only met a need, it also taught me just that much more about how to use unix. I turned it into an alias 'dash' and will use it all the time.

Thanks again.
bjast



[ Reply to This | # ]