Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know I can edit gconf to move the [Minimize,Maximize,Close] buttons back to the right-hand side, but is there a way to do this for all users?

Ideally at install time so I don't have to explain this to every user every time I set up a new machine.

share|improve this question
up vote 3 down vote accepted

I don't know about install time, but when new users are created, the files from /etc/skel are copied to the new home directory. You could add a file


with the contents

<?xml version="1.0"?>
<entry name="button_layout" mtime="1273173410" type="string">

to /etc/skel.

Or you could create the perfect user-setup (let's name him perfectuser) on a new account, and replace




in /etc/adduser.conf.

That way, each new user you create would have the same configuration as perfectuser.

Maybe the install CD could also be modified in a similar way?

To change the setting for all users, you could write a script that adds

<entry name="button_layout" mtime="1273173410" type="string">

to all /home/[user]/apps/metacity/general/%gconf.xml.

share|improve this answer

gconf-editor has an option to do this. Just right-click on a value you want to set for all users, and click "Set Default". PolicyKit will open and ask you for your password. After that every new user will have that value.

share|improve this answer
This is really good to know, but I accepted ParanoiaPuppy's answer as that one has the virtue of being scriptable. – jbowtie Jul 29 '10 at 19:52
+1, I did not know about this. – Li Lo Aug 12 '10 at 23:47

Download UbuntuTweak go to Window Manager Settings and click "Right"

Edit: I'm not exactly sure if this does it for all users but it is easy.

share|improve this answer
I may advise certain users to do this as switching themes can sometimes cause the buttons to shift back to the left. But I'm sure it doesn't work for all users. – jbowtie Jul 29 '10 at 21:11

Your Answer


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.