2

I would like to have a "Show desktop" icon in my launcher. I've seen that there are already some threads about this issue but none of them solve the problem for Unity 2D (which I'm forced to use), alrady tried MyUnity or ccsm.

Is there a way to do it? Thanks in advance.

1 Answer 1

1

You can do this with a little script and a .desktop file.

  1. Instal wmctrl
    sudo apt-get install wmctrl
  2. Create a little script, open gedit and write this: enter image description here
  3. Save the script eg:
    in your home as "show_desktop.sh"
  4. Make the script executable
    with chmod 764 /home/"user"/show_desktop.sh or
    chmod +x /home/"user"/show_desktop.sh
  5. Now you can creat a desktop file to call the script. In the terminal type:
    sudo gedit /usr/share/applications/show-desktop.desktop
  6. Add the info.
    here you have an example: enter image description here (Feel fre to change any data in the file)
  7. Go to the dash and serch for "Show Desktop" enter image description here

  8. Drag and drop the icon into the Launcher

The credit for the script if for Webupd8 , there is this "wmctrl" script for "docky", you can use it for unity launcher.

Cheers.

1
  • Works like a charm! Thanks for the detailed explanation. Nov 26, 2012 at 9:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .