Comment 37 for bug 1063617

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote : Re: [Bug 1063617] Re: 1:0.9.8+bzr3319-0ubuntu1 regression: keeps setting gsettings keys to wrong values

Gilles Tournier <email address hidden> writes:

[...]

> If backporting would unfortunately be impossible, does anybody know of a way to
> force the settings I want by using a script?

I have all my Compiz settings dumped to a text file which I load at
login ..

Created with command:
$ dconf dump /org/compiz/ > ~/.compiz-settings.dconf

Loaded at login with command:
$ sleep 3; dconf load /org/compiz/ < ~/.compiz-settings.dconf

You can make the command run at login by putting the following into an
autostart file [~/.config/autostart/load-compiz-settings.desktop]:

[Desktop Entry]
Type=Application
Exec=sh -c 'sleep 3; dconf load /org/compiz/ < ~/.compiz-settings.dconf'
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Load Compiz settings

The sleep is there for some reason I cannot remember, probably due to a
race at login where the loaded settings would not apply properly if done
too early.

Make sure things are set up correctly first and that the settings have
properly been set in dconf as well, before dumping. Additionally, I also
lost keybindings defined in Gnome keyboard properties (control panel).
To set those at startup I run the following commands in addition:

dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-1 "['<Super>j']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-2 "['<Super>k']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-3 "['<Super>l']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-4 "['<Super>oslash']"

By that time, you'll probably want to put all the mess together in a
script and load that at startup through .desktop autostart mechanism
above, instead.

This bug is a real pain for those of us who like to customize
keybindings and Compiz settings in general.