Global hotkey in Python3 using Gtk and XLib
问题 My application for X System stays in background (and in panel as indicator) and should popup whenever user hits a key, no matter whatever be the active window. Similar to Menu app. Tried the following: Listening for global key-combinations in python on Linux But can't find how to integrate this Gtk main loop. Global keybinding on X using Python gtk3 The only answer for this question is Python 2 and doesn't work. Mixing the above two, I got the following code: from Xlib.display import Display