Users transitioning to Ubuntu from Microsoft Windows frequently miss one of the most convenient desktop conveniences: a dedicated “Show Desktop” launcher button on the taskbar. While Windows provides the bottom-right corner peek button and a classic desktop toggle, modern Ubuntu (powered by the GNOME desktop environment) omits this icon from the dock by default, relying instead on the Super + D keyboard shortcut or the Activities overview. For mouse-centric users, graphic designers, and office workers juggling dozens of overlapping windows, having a clickable icon on the Ubuntu dock to instantly minimise everything and reveal desktop files is indispensable. Fortunately, you can easily add a native Show Desktop button to your dock. Here is how to add a Show Desktop icon to the Ubuntu dock.
Why Add a Show Desktop Launcher to the Dock?
Integrating a one-click desktop toggle into your application launcher offers several everyday advantages:
- Instant Desktop Access: Clear away clutter to reach spreadsheets, downloaded photos, or shortcuts saved directly to your desktop canvas without repeatedly minimising individual windows.
- Mouse-Centric Efficiency: Operate your computer comfortably with one hand on your mouse or trackpad without requiring dual-key keyboard shortcuts.
- Familiar Workflow for Windows Switchers: Restores a beloved multitasking tool that makes the Ubuntu desktop feel instantly intuitive and productive.
- Non-Destructive Action: Clicking the toggle again immediately restores all previously open windows back to their exact previous screen positions.
Method 1: Create a Native Custom Show Desktop Launcher (No Extensions Needed)
The cleanest, most reliable method works across all versions of Ubuntu (including Ubuntu 22.04 LTS and Ubuntu 24.04 LTS) by creating a standard desktop entry that triggers the built-in GNOME desktop toggle via xdotool:
- Open the Terminal by pressing
Ctrl + Alt + T. - Install
xdotool, a lightweight command-line automation tool available in official Ubuntu repositories:sudo apt update && sudo apt install xdotool -y - Create a new custom desktop launcher file in your personal local applications folder:
nano ~/.local/share/applications/show-desktop.desktop - Paste the following configuration block into the nano editor:
[Desktop Entry] Type=Application Name=Show Desktop Comment=Toggle desktop visibility Icon=user-desktop Exec=xdotool key --clearmodifiers Super+d Terminal=false Categories=Utility; - Press
Ctrl + OandEnterto write the file, then pressCtrl + Xto exit nano. - Make the new desktop file executable:
chmod +x ~/.local/share/applications/show-desktop.desktop - Press the Super key (or click the bottom Show Apps grid) and search for Show Desktop.
- Right-click the newly created Show Desktop icon and select Pin to Dash (or Add to Favourites).
A crisp desktop monitor icon will now sit proudly on your dock. Clicking it once instantly hides all open windows; clicking it again restores them all back into view.
Method 2: Use the Show Desktop Button GNOME Shell Extension
If you run a Wayland session where xdotool keystroke emulation may have restrictions, installing the official GNOME Shell Extension provides a flawless native solution:
- Open Terminal and install the Extension Manager tool:
sudo apt install gnome-shell-extension-manager -y - Open Extension Manager from your application menu.
- Click on the Browse tab at the top.
- Search for Show Desktop Button or Show Desktop from Dock.
- Click the blue Install button beside the extension.
- The extension adds an interactive toggle button directly into your top panel or dock bar immediately.
Comparison: Keyboard Shortcut vs Dock Launcher Icon
| Feature | Keyboard Shortcut (Super + D) |
Custom Dock Launcher Icon |
|---|---|---|
| Interaction Type | Requires two hands or keyboard reach | Single mouse click on dock |
| Window Behaviour | Minimises all windows / reveals desktop | Minimises all windows / reveals desktop |
| Toggle Functionality | Pressing again restores open apps | Clicking again restores open apps |
| System Overhead | Zero overhead | Negligible (standard desktop entry) |
Tips for Customising Your Dock Position and Icon Order
Once pinned to your dock, drag the Show Desktop icon along the launcher to position it conveniently:
- Top or Bottom Placement: Place it immediately adjacent to the Show Applications button at the bottom of the dock for quick corner targeting.
- Enable Minimise on Click: Combine your Show Desktop button with minimise-on-click behaviour by running
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'in Terminal for the ultimate responsive window management setup.
With this quick customisation complete, your Ubuntu workstation delivers peak desktop usability tailored to your preferred working style.