===================
- Gnome/Unity/gdm
- Left ->
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,maximize,minimize:'
- Right ->
gsettings set org.gnome.desktop.wm.preferences button-layout ':close,maximize,minimize'
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
- Left ->
==============================
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'