Author: Andrew
| Date: October 14, 2009
|
| Tags:
bash,
docky,
gnome-do,
linux,
script,
show desktop,
ubuntu
Update: Docky now has it's own "Show Desktop" applet, but Docky and Gnome DO are separate applications for a while and a lot of people are still using the old Docky integrated into Gnome DO, so this should still be useful.
I know a lot of you are using Gnome Do for quite some time, but I've only recently switched to it. One of the most annoying things when running it in Docky mode (Dock bar) is that it doesn't have to many applets, and I can live with that but now without a "Show Desktop" shortcut.
Yes, you can use a keyboard shortcut for showing the desktop, but I wanted this in Gnome Do / Docky and managed to create an applet (actually a script) to use in Docky.
The main challenge was to find a way to show / hide the windows from within a terminal. Then I found wmctrl, a tool which can hide / restore your windows from the command line.
The following instructions are for Ubuntu / Gnome, but should work for other Linux distributions / desktop environments too.