one click tray 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'