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 that Ubuntu has a file hidden somewhere deep inside it that holds the old metacity values for changing the position of the menu buttons. My question is how can I do this WITHOUT Ubuntu Tweak in Ubuntu Classic?

"Why not use the thing that's already done?"

  • That thing was written by finding this file once then making a mental note of it to create a GUI to solve the problem, which is all fine and dandy.
  • I want to learn where this stuff is for myself because I like knowing how to do things from the command line. (Also, come on, how many times have you seen a dude in a coffee shop using the command line interface to mess with stuff?)
  • It could be helpful to note the directory for others because of installing other themes to gnome-classic (cough new macbuntu port cough)

I would also like to know if this is a text file that I may be able to change with vim, emacs, gedit, etc.

share|improve this question

You can move buttons to the right with:

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

or, maybe better to twitch "close" button with "maximize" button:

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

And move them back to the left with:

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

To get the current settings, use:

gsettings get org.gnome.desktop.wm.preferences button-layout

See man gsettings for more info, and, as a bonus:

dconf Editor

In this case the changes are made in ~/.config/dconf/user file which is expected to be in the binary dconf (GVDB) database format. Only programs like dconf Editor or gsettings can safely edit this file.

More about:

share|improve this answer
@RaduRadeanu I guess I need to edit the question to read, where is the file? – Cole Busby Nov 15 '13 at 16:27
@ColeBusby There isn't a file you can edit IIRC, dconf is binary. – Oli Nov 15 '13 at 16:31
@Oli Okay, Just making sure, so gsettings is the ONLY way to make these changes yes? Also where are themes stored? (images and the like) – Cole Busby Nov 15 '13 at 20:22
@ColeBusby See my new edits. – Radu Rădeanu Nov 16 '13 at 6:45

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.