7

I would like to assign a global hotkey to my Python application, running in Gnome. How do I do that? All I can find are two year old posts saying, well, pretty much nothing :-)

Magnus
  • 598
  • 1
  • 5
  • 9

2 Answers2

9

There is python-keybinder which is that same code, but packaged standalone. Also available in debian and ubuntu repositories now.

https://github.com/engla/keybinder

Volker Siegel
  • 3,277
  • 2
  • 24
  • 35
u0b34a0f6ae
  • 48,117
  • 14
  • 92
  • 101
2

Check out the Deskbar source code - they do this; afaik, they call out a C library that interacts with X11 to do the job

Ana Betts
  • 73,868
  • 16
  • 141
  • 209
  • 3
    You pointed me in the right direction. The C library in question is _keybinder.so which is used by Deskbar, Glipper etc. This link explains it in more detail: http://cixar.com/~segphault/blog/2007/1/10 – Magnus Nov 19 '08 at 17:58
  • 1
    @Magnus: Blog died, [Wayback version](http://web.archive.org/web/20081123040533/http://www.cixar.com/~segphault/blog/2007/1/10). – genpfault Sep 08 '11 at 15:30