ubuntu dock app minimize on click 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'