API for binding and unbinding a key combo?

Bastien Nocera hadess at hadess.net
Thu Mar 27 07:35:22 PDT 2008


On Thu, 2008-03-27 at 15:19 +1100, Justin Clift wrote:
> 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?

This is how to do it for GNOME:
http://live.gnome.org/ControlCenter/CustomKeybindings

If you want to use the application defined keybindings, see:
http://live.gnome.org/ControlCenter/ApplicationDefinedKeybindings

The problem with the latter is that you still need your application to
be running, and the keys to be grabbed by the application using
XGrabKey.

Cheers



More information about the xdg mailing list