Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

gconf-editor might do what you want: link

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.