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

Is there a way to edit Compiz settings in a config file or gconf/dconf?

Please provide an example configuration being done in CCSM and the alternative method.

share|improve this question
up vote 5 down vote accepted

Well there are the standard tools:

  • gconf-editor (GUI)
  • gconftool / gconftool-2 (CLI)
  • dconf-editor (GUI)

All my compiz settings are in gconf under /apps/compiz-1

For you exact example:

gconftool-2 -s -t string '/apps/compiz-1/plugins/decor/screen0/options/decoration_match' '!state=maxvert'
share|improve this answer
Can you give an example instruction for doing this configuration using the tools you mentioned? – Oxwivi Jun 29 '11 at 8:09
Nice find on the example Oli +1 for beating me on it ;) – Rinzwind Jun 29 '11 at 8:23



Set to single monitor:

dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/core/screen0/hsize org.freedesktop.compiz.set int32:8 xrandr -s 1

set to dual monitor:

dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/core/screen0/hsize org.freedesktop.compiz.set int32:4 xrandr -s 0

You can read more on the compiz dbus wiki page.




There are files named %gconf.xml in these directories for all the settings.

share|improve this answer
dbus example doesn't have much to do with Compiz configuration, does it? By the way, I need to chat with you regarding another answer. – Oxwivi Jun 29 '11 at 8:07
see the link :-) – Rinzwind Jun 29 '11 at 8:10

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.