API for binding and unbinding a key combo?

Justin Clift justin at salasaga.org
Wed Mar 26 21:19:04 PDT 2008


Hi all,

I'm looking for a "works across all window managers" way of setting a 
Control-Printscreen key binding in my (Glib/GTK based) application.

Any suggestions?

As background info, one part of my application (already) provides a 
specialised screen capturing utility, and binds to the 
Control-Printscreen combination at program start.

It does this by writing to an (unused) gconf entry here:

   /apps/metacity/keybinding_commands/command_<varies>

and another one here:

   /apps/metacity/global_keybindings/run_command_<varies>

This only works for the metacity window manager however, which is 
well... non optimal as there are many window managers around.

There doesn't seem to be a standardised way of doing this, or do I need 
to be looking at this differently somehow?

Regards and best wishes,

Justin Clift

-- 
Salasaga  -  Open Source eLearning IDE
               http://www.salasaga.org


More information about the xdg mailing list