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 :-)
Asked
Active
Viewed 1,807 times
2 Answers
9
There is python-keybinder which is that same code, but packaged standalone. Also available in debian and ubuntu repositories now.

Volker Siegel
- 3,277
- 2
- 24
- 35

u0b34a0f6ae
- 48,117
- 14
- 92
- 101
-
Archlinux package `libkeybinder3` – starfry Feb 22 '17 at 11:36
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
-
3You 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