Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Global hotkey for Python application in Gnome

Tags:

python

gnome

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 :-)

like image 378
Magnus Avatar asked Nov 19 '08 15:11

Magnus


2 Answers

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

like image 122
u0b34a0f6ae Avatar answered Sep 18 '22 00:09

u0b34a0f6ae


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

like image 24
Ana Betts Avatar answered Sep 18 '22 00:09

Ana Betts