4

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.

Oxwivi
  • 17,589
  • 53
  • 136
  • 197

2 Answers2

5

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'
Oli
  • 289,791
  • 117
  • 680
  • 835
  • Can you give an example instruction for doing [this](http://askubuntu.com/questions/39871/how-can-i-hide-the-decoration-of-maximized-windows/41675#41675) configuration using the tools you mentioned? – Oxwivi Jun 29 '11 at 08:09
  • Nice find on the example Oli +1 for beating me on it ;) – Rinzwind Jun 29 '11 at 08:23
1

dbus

Example:

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.

Manual

See:

~/.gconf/apps/compiz-1/
/.gconf/apps/compizconfig-1/

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

Rinzwind
  • 293,910
  • 41
  • 570
  • 710