Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the simplest way to (globally) bind a key combination (e.g. <Super>+A) to a function in a gnome shell extension?

Inspecting a couple of extensions, I ran into the following code:

global.display.add_keybinding('random-name',
                              new Gio.Settings({schema: 'org.gnome.shell.keybindings'}),
                              Meta.KeyBindingFlags.NONE,
                              function() { /* ... some code */ });

I understand that the key combination is specified by the schema parameter, and that it's possible to create an XML file describing the combination. Is there a simpler way to do this?

share|improve this question
    
If you are creating a GNOME shell extension then you would probably get better responses on http://stackoverflow.com/. Flag for moderator attention and they should migrate your question. – NobleUplift May 9 '13 at 4:37

gconf-editor might do what you want: link

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .