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,770 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
- 2,989
- 1
- 21
- 32
u0b34a0f6ae
- 45,417
- 14
- 88
- 100
-
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
- 72,589
- 16
- 137
- 204
-
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