In the standard Ubuntu desktop environment, clicking an application icon on the side or bottom dock focuses the active window. However, clicking that same icon a second time while the window is focused does nothing by default. For users accustomed to Windows or other desktop operating systems where clicking a running taskbar icon minimizes the active window, this default Ubuntu behaviour feels unintuitive and frustrating. Fortunately, Ubuntu includes a hidden GNOME configuration setting that allows you to easily enable “minimise on click” with a single command.
Why Enable Minimise on Click?
Activating this dock behaviour delivers several practical usability benefits for everyday Ubuntu desktop users:
- Familiar Multitasking Workflow: Users migrating from Windows or lightweight Linux distributions can toggle application visibility instantly without moving the cursor to the tiny minimise button in the title bar.
- Faster Workspace Decluttering: Quickly hiding a browser window or document to glance at desktop files requires only a single click on the dock.
- Intelligent Multi-Window Handling: If multiple windows of the same application are open (such as several LibreOffice documents), the setting can be configured to cycle through previews or minimise them cleanly.
Step-by-Step: Enable Minimise on Click via Terminal
Because Ubuntu does not surface this option in the standard GUI Settings app, configuring it requires running a quick gsettings command in the Terminal:
- Open the Terminal application on your Ubuntu desktop (press Ctrl + Alt + T).
- Copy and paste the following command into the terminal:
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
- Press Enter to execute the command.
The setting takes effect immediately—no system reboot or session logout is required. Click any running application icon in your Ubuntu dock to focus it, and click it again to immediately minimise the window to the dock.
Advanced Option: Minimise or Preview for Multiple Windows
If you regularly work with multiple windows of the same application (for example, three separate Firefox windows or multiple Terminal sessions), setting click-action to 'minimize-or-previews' provides an even smarter experience:
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize-or-previews'
With this configuration:
- If only one window of the app is open, clicking its dock icon minimizes or restores it instantly.
- If multiple windows are open, clicking the icon displays a visual thumbnail overview of all open windows, allowing you to select the exact window you want.
How to Restore the Default Ubuntu Dock Behaviour
If you ever want to revert to Ubuntu’s factory default dock behaviour (focusing active windows without minimising on second click), enter the following command:
gsettings reset org.gnome.shell.extensions.dash-to-dock click-action
Press Enter. The dock will immediately restore its default behaviour.
Ubuntu Dock Click Actions Comparison
| Value | Single Window Behaviour | Multiple Windows Behaviour |
|---|---|---|
'skip' (Default) |
Focuses window; second click does nothing | Shows thumbnail preview of all windows |
'minimize' |
Toggles between focused and minimised | Minimises the current top-most window |
'minimize-or-previews' |
Toggles between focused and minimised | Presents window thumbnail picker |
'cycle-windows' |
Focuses window | Cycles focus sequentially through all windows |
Alternative Method: Using the Dconf Editor GUI
If you prefer adjusting settings visually through a graphical configuration tool:
- Install dconf-editor via Terminal:
sudo apt install dconf-editor -y - Launch dconf Editor from your application menu.
- Navigate through the path:
/org/gnome/shell/extensions/dash-to-dock/. - Scroll down to find the key named click-action.
- Click into it, turn off Use default value, and choose minimize or minimize-or-previews from the custom value menu.
- Click the green Apply tick button in the bottom-right corner.
Frequently Asked Questions
Does this command work on Ubuntu 22.04 LTS and 24.04 LTS?
Yes. The Ubuntu desktop uses the canonical Ubuntu Dock (a pre-configured version of the Dash-to-Dock extension). The org.gnome.shell.extensions.dash-to-dock gsettings schema is supported natively across Ubuntu 20.04, 22.04 LTS, 24.04 LTS, and later releases.
Does enabling minimise on click require root (sudo) privileges?
No. The gsettings command modifies user-level desktop preferences stored in your personal home profile, so no sudo password is required.
Will updating Ubuntu override this setting?
No. Standard security updates and package upgrades preserve your gsettings configuration. Your preferred dock click behaviour will persist across reboots and normal system updates.