I am talking about when you click on the icons in the dock

This command (obviously)

gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true

will not work.

Related to: Switching between windows with scroll wheel on Dock

  • 1
    I'd say Ubuntu user interface was designed with the idea that clicking on a launcher icon manages multiple windows of that kind. So if you have for example multiple Terminal windows open, there is only one icon in the launcher, so it makes no sense to "minimize on click" because it is ambiguous which window should be minimized. Furthermore, clicking on this icon manages which window of that type to switch to, so that functionality gets lost if it is used for minimizing windows only. – darksky Oct 19 '17 at 23:00
  • This is a matter of getting used to clicking the minimize icon in the top-left corner of windows. – darksky Oct 19 '17 at 23:01
  • 1
    @darksky Dash to Dock has many customisations to deal this scenario. For example in my set up, left clicking minimises/restores the focussed window and mouse wheel cycles through all the windows. – pomsky Oct 19 '17 at 23:17

It seems as Ubuntu Dock is a fork of the popular and highly customisable Dash to Dock, Ubuntu Dock obeys (some) preferences set by Dash to Dock.

See Solution 2 for the simplest fix.

Solution 1

Follow the steps below.

  1. Go to Dash to Dock's homepage at extensions.gnome.org.
  2. Turn the extension on by clicking on the toggle button.
  3. Reload the page. It should look like this:
    enter image description here
  4. Click on the "settings" symbol next to the toggle button which now says "ON". A window should pop up.
  5. Navigate to the "Behaviour" tab and select "Minimise" in "Click action".
    enter image description here
  6. Close this window and come back to Dash to Dock's homepage.
  7. Click on the toggle button to deactivate Dash to Dock.
    enter image description here

Now clicking on the icons of running applications in Ubuntu Dock should minimise/restore the focussed application window.

Solution 2

Open Terminal and run

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'

To revert to the default option, simply run

gsettings reset org.gnome.shell.extensions.dash-to-dock click-action

Also, run the following to see all possible permitted values

gsettings range org.gnome.shell.extensions.dash-to-dock click-action
  • 1
    Hey sir, I tried it. It worked for me. I had upgraded from 17.04. But the left Ubuntu Dock has now become smaller like Fedora's one. :P – Omkar Nath Singh Oct 20 '17 at 7:01
  • 1
    Sorry, I disabled the extentions, now everything fine. Thanks. – Omkar Nath Singh Oct 20 '17 at 7:01
  • 1
    only the first solution worked for me – Dimitar Oct 23 '17 at 8:12
  • 1
    I think it's worth mentioning that you can read the current value by running gsettings get org.gnome.shell.extensions.dash-to-dock click-action. Default setting on 18.04 yields previews. – Andris May 12 '18 at 18:23
  • @Andris You're right, someone made this edit (see the revision-history) which I somehow overlooked. It sounds like 'skip' is the default value which isn't true. I fixed it. – pomsky May 12 '18 at 18:33

use this command. it will show preview if multiple windows are opened and minimize if single window open.

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize-or-overview'
  • Lovely ! :) :) :) – Pratik Jun 21 at 4:54

Most of the answers are valid but I found out that enabling click to minimize will result in no preview of the open instances of the app.

Alternatively you can use Shift+Mouse middle click to minimize a window.

Tested this on ubuntu 18.04.1


For UBUNTU 18.04:

  1. Install gnome tweak tool:

    sudo apt install gnome-tweak-tool
  2. Open Application centre

  3. Type "Dash to Dock"
  4. Install
  5. Open the tool and select behaviour > click action > minimize

I will say that the best way is not to change the action to minimize. Just live it as it is. Instead, if you look at this Navigate to the "Behavior" tab and select "Minimize" in "Click action". Next to the click to action you will see a gear icon.

A new window should popup (Customize middle-click behavior) there you can see on the first option that Shift+Click already is set to minimize the window. So you can leave all default and when you want to minimize the do Shift+Click.

I recommend this because there are other post where people gets annoyed with the result after they change this behavior and then want to reverse it because this does not work properly when you have multiple windows open.

Here is a screenshot of the screen that I am referring to:https://imgur.com/YmW93Id

Step one Click on the settings next to the on button enter image description here

Step two click on the Behavior tab enter image description here

Step three click on the gear icon next to the Cycle through windows

enter image description here

Step four look at the first option that indicates to use Shift+Click enter image description here

Using this will allow you to get the functionality you desire without having the issue that other are complaining about when it come to multiple browser windows open.

Here is one of the comments that I found around the internet of issues when changing that behavior How to turn off on click minimize on dock option on Ubuntu 18.04?


If anyone ends up here as I did looking for the answer for this for the Unity dock, what worked for me was: install Unity-tweak-tool, and then Launcher>Minimize single window applications on click

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.