Can I make Ubuntu 18.04 switch between multiple windows of the program by just clicking the icon?

I just want a Windows 7 behavior where clinking the icon cycles through all the windows. I know about Alt+` (Tilde) and Alt+Tab clicking the icon is just more intuitive.


Solution 1:

You can do

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

Solution 2:

If you mean Enabling Click to Minimize (minimize the window when clicking on the icon) as shown in the gif photo:

enter image description here

It is simple, you can do that by running the following command in your terminal:

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

If you do not like ‘click to minimize’ behavior, you can set it back to default using the command below:

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