How to Add Show Desktop in Ubuntu 18.04, 18.10 in Dock

1 min

This tutorial would show you how to add show desktop feature in Ubuntu.

Show desktop feature dropped from Ubuntu during transition to GNOME 3 desktop environment. However, you can still create a desktop shortcut add it to the Panel, Dock.

Typically, when you press Super+d or CTRL+Alt+d – all the opened windows become minimized or restored. This following method can help you to do that.

Steps to Add Show Desktop Icon

  • Open terminal and run below commands to install xdotool.
sudo apt install xdotool
  • Create a .desktop file, named show-desktop.desktop – using below commands.
gedit ~/.local/share/applications/show-desktop.desktop
  • In the file, copy below entries and paste.
[Desktop Entry]
Name=Show Desktop
Exec=xdotool key --clearmodifiers Super+d
  • Save and close gedit.
  • Now search the show desktop in application search and right click -> Add to favourites to add it in the dock.
Show Desktop in Ubuntu 18.04
Show Desktop in Ubuntu 18.04
  • Now you would be able to use the icon to minimize all the open windows and show the desktop.

Note: Above steps will not work on Ubuntu on Wayland sessions as the xdotool simulates X11 mouse and keyboard events. 


We bring the latest tech, software news and stuff that matters. Stay in touch via Telegram, Twitter, YouTube, and Facebook and never miss an update!

Join our Telegram channel and stay informed on the move.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.


Creator of All time Linux user and open-source supporter. Connect with me via Telegram, Twitter, LinkedIn, or send us an email.
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Oldest Most Voted
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x