Software & AppsOperating SystemLinux

How To Add ‘Show Desktop’ Icon to Unity Launcher

Ubuntu 12

In this tutorial, we will guide you through the process of adding a ‘Show Desktop’ icon to the Unity Launcher in Ubuntu. This feature can be extremely handy for quickly minimizing all open applications and accessing the desktop.

Quick Answer

To add a ‘Show Desktop’ icon to the Unity Launcher in Ubuntu, you can either use the built-in system settings, MyUnity or CompizConfig Settings Manager (for older versions of Ubuntu), or create a custom launcher using the xdotool command.

Pre-requisites

Before we start, ensure that you have administrative access to your Ubuntu system. You should also be familiar with basic terminal commands.

Method 1: Using System Settings (For Ubuntu 13.04 and later)

This is the simplest method to add a ‘Show Desktop’ icon to the Unity Launcher.

  1. Open the System Settings from the Ubuntu main menu.
  2. Navigate to the Appearance section.
  3. Look for the Behavior tab, where you will find the show-desktop icon option.
  4. Toggle the switch to ON to enable the ‘Show Desktop’ icon on the Unity Launcher.

Method 2: Using MyUnity or CompizConfig Settings Manager (For Ubuntu 12.04 and earlier)

If you are using an older version of Ubuntu, you can use either MyUnity or CompizConfig Settings Manager to add the ‘Show Desktop’ icon.

Using MyUnity

  1. Install MyUnity with the following terminal command:
sudo apt-get install myunity
  1. Open MyUnity and go to the Desktop tab.
  2. Enable the Show Desktop option.

Using CompizConfig Settings Manager

  1. Install CompizConfig Settings Manager (ccsm) with the following terminal command:
sudo apt-get install compizconfig-settings-manager
  1. Open ccsm and navigate to the Ubuntu Unity Plugin settings.
  2. Select the Experimental tab and check the box next to Show 'Desktop Icon' in the launcher.

Method 3: Creating a Custom Launcher

This method involves creating a custom launcher that uses the xdotool command to minimize all windows and show the desktop.

  1. Install xdotool with the following terminal command:
sudo apt-get install xdotool
  1. Create a new file named show-desktop.desktop in the ~/.local/share/applications/ directory with the following terminal command:
touch ~/.local/share/applications/show-desktop.desktop
  1. Open the file in a text editor and paste the following code:
[Desktop Entry]
Type=Application
Name=Show Desktop
Exec=xdotool key super+d
Icon=user-desktop
Terminal=false
StartupNotify=false

This code creates a new application shortcut named ‘Show Desktop’ that executes the xdotool key super+d command when clicked. The super+d key combination is the default keyboard shortcut for showing the desktop in Ubuntu.

  1. Save the file and close the text editor.
  2. Make the file executable with the following terminal command:
chmod +x ~/.local/share/applications/show-desktop.desktop
  1. Finally, open the file manager, navigate to ~/.local/share/applications/, and drag the show-desktop.desktop file to the Unity Launcher.

Conclusion

Adding a ‘Show Desktop’ icon to the Unity Launcher in Ubuntu can help improve your productivity by providing quick access to the desktop. Depending on your Ubuntu version, you can use the built-in system settings, MyUnity, CompizConfig Settings Manager, or create a custom launcher. We hope this tutorial was helpful, and you were able to add the ‘Show Desktop’ icon to your Unity Launcher successfully.

Can I add a ‘Show Desktop’ icon to the Unity Launcher in Ubuntu?

Yes, you can add a ‘Show Desktop’ icon to the Unity Launcher in Ubuntu using the methods described in this tutorial.

What are the pre-requisites for adding a ‘Show Desktop’ icon to the Unity Launcher?

Before adding a ‘Show Desktop’ icon, ensure that you have administrative access to your Ubuntu system and are familiar with basic terminal commands.

Which method should I use to add the ‘Show Desktop’ icon?

The method you should use depends on your Ubuntu version. For Ubuntu 13.04 and later, use the System Settings method. For Ubuntu 12.04 and earlier, you can use either MyUnity or CompizConfig Settings Manager.

How can I install MyUnity?

You can install MyUnity by running the command sudo apt-get install myunity in the terminal.

How can I install CompizConfig Settings Manager (ccsm)?

You can install CompizConfig Settings Manager by running the command sudo apt-get install compizconfig-settings-manager in the terminal.

What does the ‘xdotool’ command do?

The ‘xdotool’ command is a tool used to automate keyboard and mouse actions. In this case, it is used to simulate the key combination for showing the desktop.

How can I make the custom launcher file executable?

You can make the custom launcher file executable by running the command chmod +x ~/.local/share/applications/show-desktop.desktop in the terminal.

Can I use a different keyboard shortcut to show the desktop?

Yes, you can modify the Exec line in the custom launcher file to use a different keyboard shortcut. Just replace xdotool key super+d with the desired key combination.

Leave a Comment

Your email address will not be published. Required fields are marked *