14 thoughts on “Global keybindings in GTK+”

  1. 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).

  2. 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?

  3. 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…

Comments are closed.

Leave a Reply

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