GNOME is a beautiful, modern desktop environment focusing more on switching between applications.
But what if you want to minimize all the running windows and display just the desktop?
In Windows, you can do this by pressing Windows + D. You can also use the same keyboard shortcuts in Ubuntu as it uses a customized GNOME desktop.
But vanilla GNOME has disabled the shortcut key to show the desktop for some reason.
When you press Super+D or Ctrl+Super+D, nothing happens. If you want to see the desktop, you’ll have to minimize all running windows one by one. It is not convenient especially if you have several application windows open.
If you prefer the minimize to desktop option, you can add a custom keyboard shortcut. It takes a tiny bit of effort but does the job.
In this quick tutorial, I am going to show you how to add a keyboard shortcut to show the desktop in GNOME.
Add a shortcut key to show the desktop in GNOME
I am using Arch Linux with GNOME 43 in this tutorial, but the steps are applicable to any Linux distribution using any latest versions of GNOME.
Also, the latest GNOME versions have improved UI designs. So, you might not see the same looks if you are a few releases behind.
But I believe the steps are straightforward and you can easily follow them.
FYI, the Super key in Linux terms is the Windows key.
Step 1
Go to System Settings. Press the Super key to access the activities overview and search and open settings.
Step 2
When you are in System Settings, scroll down a bit and look for the Keyboard section in settings.
From the Keyboard section, select View and Customize Shortcuts. From the new window listing available categories for shortcuts, select Navigation as shown in the above screenshot.
Step 3
You can find all the actions available and their respective keyboard shortcuts here. From this list, you’ll see that the Hide all Normal Windows action has been disabled.
Clicking on this action will pop up a dialog box, where you can enter your required shortcut. In this case, I used Super + Ctrl + D. Once done, press Set to save your choice.
You can use any keyboard shortcut you want. If any combination you entered is already being used for another action, it will display a warning message.
You can either replace the existing one for your purpose or use a new shortcut by pressing cancel and trying again.
Now, your new shortcut will be assigned for showing the desktop.
If you accidentally press the wrong key combination and set it, just click on it and press the backspace key and it will be disabled again. Also, you can click on the small button to the right of the shortcut to disable it.
Now click on it again and use the desired key combination.
Once all set, you can press the combination to minimize all windows. Pressing one more time will make them reappear.
Alternative: Use third-party extensions to peek into desktop
In this method, you can use Dash to Panel extension, which is available and supported for the latest GNOME releases also.
First install Dash to Panel extension, either from the website or through the extensions manager app. I used the Extension-Manager app to do the same.
Once installed, you will notice that your top panel has been removed and a bottom panel like Windows appears.
In this, clicking the right-most button, as shown above, will minimize all the windows to show you the desktop. Another click will bring the minimized windows back to the old state. Also, you can customize this panel to your liking.
That’s it. Enjoy the shortcut to show the desktop in GNOME. I hope you found this quick tutorial helpful. Any questions, suggestions, or a word of thanks are always welcomed
About the author
Abhishek Prakash
Created It’s FOSS 11 years ago to share my Linux adventures. Have a Master’s degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️♂️
I Just upgraded to gnome 3.5.4 from gnome 3.4 on Ubuntu and now I feel that it is one of the most buggiest gnome versions ever
Gnome shell extensions are one of the best things ever for me especially when gnome came up with installing extension from their website. But unfortunately for Gnome 3.5.4 almost no extensions in their website support it :'( . And it is extremely hard to install gnome shell extensions from their source.
One of the most annoying thing is that «Hide all normal windows» feature doesn’t seem to work. And bug while changing brightness still not fixed.
So I have decided to manually fix each of the bugs myself for now.
Today I will show you how to enable «Show Desktop» or «Hide all normal windows»
Open Terminal and install xprop and xwit
sudo apt-get install xprop xwit
Download the Gist file which i have created or copy from below and save it as minimize.sh
Loading ….
Then open Keyboard shortcuts and create a Custom Shortcut
Then give a name to the shortcut and in place of command give the link to the script which you just downloaded. Make sure that that file is executable. If not change it using file properties or use chmod.
Now assign some key for it preferably Super+D
If you don’t like doing all those there is a docklet called «Show Desktop» for Docky which still works pretty well if you don’t mind using your mouse
A quick solution for minimizing all windows but the one that is currently in foreground. Tested with GNOME Shell 44.9, Fedora 38.
Install xdotool:
sudo dnf install xdotool
Create executable shell script:
#!/bin/bash
currentwindowid=$(xdotool getactivewindow)
currentdesktopid=$(xdotool get_desktop)
for w in $(xdotool search --all --maxdepth 3 --desktop $currentdesktopid --name ".*"); do
if [ $w -ne $currentwindowid ] ; then
xdotool windowminimize "$w"
fi
done
Create custom shortcut, example:
Kudos to:
- https://askubuntu.com/a/1157036
- https://askubuntu.com/a/1412426
I think Balaji has the only reasonably coherent comment on here, from the point of view of either a new/casual user or of someone who has to support and train such users. People are not software-illiterate. There are conventions that nearly every reasonably successful graphical interface has followed for (admittedly) a very long time, and to casually abrogate user expectations without so much as venturing outside the developer echo chamber for opinions and advice shows pathologically gross misunderstanding of real-user needs. (I appreciate and fully agree with the comments made by Linus Torvalds quoted in the Wikipedia page on GNOME; given what he’s discussing, I’d even go so far as to say he was being quite restrained in his opinion.)
And if the question is “where does the window minimise to“, then I’d say you’ve nailed one of the major, structural defects in GNOME 3, for the same reason.
I’ll continue to use and support GNOME 2.32 on Linux and BSD systems for as long as that remains viable. After that…I’ll be taking a good, hard look at both KDE (as a “full-stack” desktop environment) as well as Xfce.
It must be nice to not have to live in the real world.