I\'ve created a python script in which an event needs to be executed each time I press the Super (or WinKey) on my keyboard.
How can one achieve this without the pyt
You can use PyUserInput for this purpose, which is a cross-platform solution, compatible, in your case, with X11.
Example with Super:
from pykeyboard import PyKeyboardEvent
class MonitorSuper(PyKeyboardEvent):
def tap(self, keycode, character, press):
'''Monitor Super key.'''
if character == 'Super_L':
if press:
print('Super pressed')
else:
print('Super released')
mon = MonitorSuper()
mon.run()