Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Running 12.04. Downloaded Ubuntu tweak and set window controls to the right side. Only some programs follow the rule. Pidgin as an example has window controls on the right. But Chrome, Thunderbird, Geany, still have controls on the left.

How can I move ALL window controls(close/min/max) to the right?

share|improve this question
welcome Matt, What desktop theme are you using? I think this maybe a GTK2 v 3 issue – Stephen Myall Aug 10 '12 at 14:52
At least with Chrome, you MAY have to set it to use the system settings, if it is not. Click the Wrench -> Settings -> check "Use system title bar and borders" (under appearance). I am not sure about the other programs, but they may have something similar. – reverendj1 Aug 10 '12 at 14:56
@StephenMyall - Release 12.04 (precise) 64-bit Kernel Linux 3.2.0-27-generic GNOME 3.4.2 – Matt Kaye Aug 10 '12 at 17:28

11 Answers

  1. Open terminal
  2. Type: gconf-editor
  3. Go to Apps -> Metacity -> General
  4. Find: button_layout
  5. Change value to: menu:minimize,maximize,close

For Ubuntu 10.10 the string needs to be menu:minimize,maximize,close, with a comma in the end of the string.

share|improve this answer
Protip: if you delete the colon and forget to add it back, you'll loose your menu bar and it will be really annoying/buggy behavior (the terminal doesn't show any text) until you set it back and restart. – Carrotman Feb 14 at 18:40

You can also download Ubuntu Tweak, which has an easy GUI option to switch the window buttons to the right. It's found under the Windows Manager Settings option, under the Desktop category. Just select the "Right" radio button and you're done.

share|improve this answer
1  
I used Ubuntu Tweak to do it and in my opinion, it is the easiest method. – ricky Aug 2 '10 at 16:33
It is surely the easiest method. – User Oct 22 '10 at 3:02

For 12.04 and 12.10

Unity

Run this command in a terminal:

gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"

Note that this will only change the position of the window controls of non-maximized windows. The maximized windows will continue to have their window controls on the left in title bar.

GNOME-shell

gsettings set org.gnome.shell.overrides button-layout ":minimize,maximize,close"
share|improve this answer
1  
For those who want to move buttons to the left "close,minimize,maximize:" – Yuriy Voziy Oct 23 '12 at 11:18

It seems with 10.10, the string needs to be:

menu:minimize,maximize,close,

Note the comma at the end. Without it, I had no Close button.

share|improve this answer

System>Preferences>Appearance Change the theme to something other than Radiance/Ambiance.

share|improve this answer
I don't want to change the theme! – User Jul 31 '10 at 17:40
1  
@Shubhkarman If you are using the default theme, and switch the button layout, it will look like crap, because the buttons are designed to be in a certain order. To fix that you could install Ambiance_R (or Radiance_R) gnome-look.org/content/show.php?content=123927 – DoR Jul 31 '10 at 17:59
2  
Wait... Pynt, it doesn't do that anymore. It used to (early in development) but it was fixed with a patch to Metacity. Now you can put the buttons any order you want, and it'll still look good. – snostorm Aug 1 '10 at 1:28

In 12.04, use dconf

org.gnome.desktop.wm.preferences

the button layout settings there are the same as gconf previously. Enjoy!

share|improve this answer

Run the command:

sudo apt-get install gconf-editor -y && gconf-editor

Then navigate to
Apps → Metacity → General
or using Gnome shell:
desktop → gnome → shell → windows
under button_layout change:

close,minimize,maximize:

to

:close,minimize,maximize

And I have just tried this in 12.04 Unity and it works in all the programs I tried, including Chromium and Thunderbird.

The colon separates what buttons go on which side, and you can change the order to suit what you want, for example:

close:minimize,maximize

would put close on the left and minimize and maximize on the right in that order, while:

:close

Would give the Gnome shell style of just a close button on the right.

share|improve this answer
I want all three on the right, just like in windows. I followed your suggestion and button_layout now looks like this - :minimize,maximize,close. Buttons are still on the left side of the windows in may programs :| – Matt Kaye Aug 10 '12 at 17:25

You can set it from the command line using the gconftool-2 utility.

gconftool-2 --set --type string /apps/metacity/general/button_layout 'menu:minimize,maximize,close'

share|improve this answer

Some applications do not adhere to the global window decorations, and Chrome is an example of this behaviour. Right-click its window border and choose "use system window decoration". Pretty much every major application other than Chrome uses the default, system-wide kind, so peobably this is all you will have to do.

Also, I strongly recommend you leave the button order as it is, because this change did not come out of nowhere. For instance, in Unity, maximized windows have their buttons in the top-left corner as well, and this tweak won't change that.

share|improve this answer

Thanks to this site's information, this command should help:

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
share|improve this answer

see this Here

gconftool-2 --set /apps/metacity/general/button_layout --type string ":minimize,maximize,close"
share|improve this answer
Welcome to Ask Ubuntu! I believe this or at least a very similar answer was already posted. If you feel an answer already present is good, you may upvote it (once you've gained enough reputation) or propose an edit if you feel it can be improved. – gertvdijk Jan 29 at 21:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.