Gnome 3 / GSettings Sucks: Export/Importing your Keyboard shortcuts

Previous to Gnome 3 I had a nice simple flat file for my keyboard settings, that I just unzipped into .gconf and all was good. Now Gnome is copying the very bad idea of a registry from Windows, you have go through the gsettings API or tool.

Locate the keyboard shortcut schema “org.gnome.desktop.wm.keybindings”

Now lets “export” them

gsettings list-recursively org.gnome.desktop.wm.keybindings > keybindings

Now unfortunately there does not appear to be a way to import that file, so I just hacked the file. Adding “gsettings set” to the front and quoting the values. So

org.gnome.desktop.wm.keybindings show-desktop ['d', 'd', 'd']

becomes

gsettings set org.gnome.desktop.wm.keybindings show-desktop "['d', 'd', 'd']"

I’ve created some keybindins that use the Windows/Super key for window management, plus this don’t conflict with IntellJ