How to add minimize button in Elementary OS
Elementary OS Loki 0.4, how to get minimize button if you would like to use it
For Windows type button style on right:
gsettings set org.pantheon.desktop.gala.appearance button-layout:minimize,maximize,close
For Mac Style button on left:
gsettings set org.pantheon.desktop.gala.appearance button-layout close,minimize,maximize
To set it back again to default settings:
gsettings set org.pantheon.desktop.gala.appearance button-layout close:maximize