1.open terminal paste this and enter gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"