I recently upgraded from 10.04 to 12.04, and there is no show desktop in the launcher. I know I can use Ctrl+Super+D, but is there a way to get it in the launcher?
Edit:
I just installed the "show desktop" icon on the launcher with MyUnity (see below) and it worked fine. It did not install the icon above Dash launcher, but well below it. That bug has apparently been fixed. This is as of 2012.9.30.
13.04 and later
The show-desktop icon is now a toggle option via System Settings - Appearance
12.04 and earlier
You could install MyUnity and there you will have the option to active "Show Desktop".
Note: As of May 2012, this places the Show Desktop icon above the Dash icon. This is a bug.
Only a workaround:
xdotool
~/.local/share/applications/show-desktop.desktop
Paste the following into that file:
Make the file executable:
Right click -> Properties -> Permissions -> Tick ‘Allow executing as a programme’
Now browse to that file in Nautilus and drag it to the launcher:
The problem with this is, that you have to wait a bit after you started the launcher before you can start it again. So you can not quickly do hide -> unhide. It actually works via the command line, so maybe there's a way to fix this, but I have no idea how.
Update for 11.10:
In 11.10 the shortcut
super+d
doesn't seem to work anymore. Instead usectrl+alt+d
. However, the above mentioned problem remains.Update for 12.04:
In 12.04 you will be able to enable a launcher item via
ccsm
(Ubuntu Unity Plugin options → Experimental tab):(source: xrmb2.net)
Ubuntu 12.10
To add "Show desktop" icon in Ubuntu 12.10:
This icon can now be repositioned by dragging and dropping.
Source
You can also use
compizconfig-settings-manager
(ccsm) (instead ofMyUnity
) to adjust this setting.Open CCSM, and click on Ubuntu Unity Plugin settings, then select the Experimental tab and check the box beside Show "Desktop Icon" in the launcher.
This will place the icon at the top of your dash, so you'll need to do as @Roland Taylor suggested and reset unity (
unity --reset
).Additionally, you can show desktop using the
Alt-Tab
switcherYou can quickly show the desktop using the keyboard shortcut Ctrl + Super + D. I do not know of an option to use an icon.
When you are using Unity you got animations activated and could then use an edge binding. Whit this you even don't have to click.
You can install CompizConfig Settings Manager from the Software Center go to 'General Settings' (1.) then to key bingings (2.) and there you can choose an edge to trigger 'Show Desktop' (3.). There you also have the option to set an individual keyboard shortcut.
There is a "Show desktop" icon when alt-tabbing, so you can use alt-tab then shift-alt-tab to accomplish this.
Ubuntu 11.04
From webup8.org: (With slight modifications by me)
Reset Unity (
unity --reset
), and then reenable it, to put it back in the right place.