easy command-line compiz settings import and export

One thing I dislike about setting up any new machine is how many places I have to poke compiz to get it to behave in the manner to which I am accustomed (e.g. widget layer enabled; sloppy focus (the One True Focus); viewport grid with names and quick-jump hotkeys; etc, etc). One can use compiz-settings-manager to do a manual import of settings (that one has hopefully exported — also manually — from another machine setup the way one likes it), but that gets… tedious.

Enter this nifty little question and answer! Note that there are two scripts: one for export and one for import.


Using these scripts to set up a cron-driven auto backup is left as an exercise for the reader. 🙂