how to enable click to minimize on ubuntu code example
Example: ubuntu minimize window by clicking on dock
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'