14 thoughts on “Global keybindings in GTK+”

  1. I don’t know, but the answer lies in the gnome-do source, which you are allowed to read. 🙂 Tomboy, too.

  2. Why don’t you grab the gnome-do source code and see for yourself? It’s in libdo, you might also want to take a look at tomboy’s they do it too.

  3. There’s no good way to do this, your two bizarre hack-ish solutions are:
    1. Use gconf and steal one of the metacity keybindings (like Automatix does)
    2. Use Tomboy’s .so file (I forget the name), like gnome-do

    1. Means that you potentially steamroller over user preferences unless you’re very careful, and you have a (small) chance of not being able to register a keybinding at all. 2. means that you need to depend on code from Tomboy, so you either have to depend on Tomboy directly (like gnome-do used to) or copy code from them and keep it updated manually (like gnome-do now does).

  4. Probably a bit rough but the only thing that I can think of:
    make the application remote controllable with libunique or dbus, provide it with some command line option to do what you want and bind those to metacity global keybindings setting the relevant keys in /apps/metacity/global_key_bindings and /apps/metacity/keybinding_commands.
    Any better idea?

  5. Kind of irrelevant, but one thing I don’t get is how Gnome’s keyboard shortcuts completely fail at using the super keys, but both Compiz Fusion and Gnome Do don’t have any trouble at all…

Leave a Reply

Your email address will not be published. Required fields are marked *