I am talking about when you click on the icons in the dock
This command
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true
which works for Unity Launcher, (obviously) does not work.
Related to: Switching between windows with scroll wheel on Ubuntu Dock
Best Answer
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 (CLI method) for the simplest fix.
Solution 1 (GUI method)
Follow the steps below.
Now clicking on the icons of running applications in Ubuntu Dock should minimise/restore the focussed application window.
Solution 2 (CLI method)
Open Terminal and run
To revert to the default option, simply run
Alternative options: (may work only on newer Ubuntu Dock or Ubuntu versions)
To minimise when there is a single window of the application and show thumbnail previews if there more than one, run:
To minimise when there is a single window of the application and show the Activities overview if there more than one, follow the answer by V T.
In general, run the following to see all possible permitted values