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 ['<Super>d', '<Primary><Super>d', '<Super>d']

becomes

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

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

  1. Thank you for this.

  2. Not too helpful, because
    gsettings list-recursively org.gnome.desktop.wm.keybindings > keybindings

    seems to havfe created a text-file representation of ONLY THE (or SOME?) builtin stuff, not (for instance) my own shortcuts.

    Is there a way to get ALL top-level key-shortcuts (i.e., all those not special to an application)?

Leave a Comment