title: Gnome Shell Extension Key Binding
body: <p><strong>What is the simplest way to (globally) bind a key combination (e.g. <code>&lt;Super&gt;+A</code>) to a function in a gnome shell extension?</strong></p>
  
  <p>Inspecting a couple of extensions, I ran into the following code:</p>
  
  <pre><code>global.display.add_keybinding('random-name',
                                new Gio.Settings({schema: 'org.gnome.shell.keybindings'}),
                                Meta.KeyBindingFlags.NONE,
                                function() { /* ... some code */ });
  </code></pre>
  
  <p>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. <strong>Is there a simpler way to do this?</strong></p>