metacity –replace or ‘kwin –replace &;’
Shifting the order of the titlebar buttons
The installation script will move the “traffic lights”, the minimize, maximize
and close buttons, on the left hand side of the titlebar in Metacity
(instructions for using the Emerald/Compiz Fusion theme appear in Section
3). If you want to make the change manually, press Alt+F2 and type in gconf-editor.
Press Enter or click Run and a new window should appear. In the sidebar, go to / →
apps → metacity → general. Back on the right hand side, double click on
button_layout. Delete the value that’s there and type in
menu:minimize,maximize,close. Then Click OK and close the application
Configuration Editor. The buttons will now be on the left side of titlebar. To restore
the buttons to the original layout, just replace the string with
close,minimize,maximize:menu.