System wide hotkeys
Project description
System Hotkey
Multi platform system wide hotkeys for python 3,
Currently no mac or python2 support :(
Mac support is coming in a few years i would say!
Installation
the old
pip3 install system_hotkey
should do the trick
Windows
install pywin32
Linux
For x11 you will can either use xcffib (bsd license),
or you may use the python xlib bindings (gpl license)
Usage
from system_hotkey import SystemHotkey
hk = SystemHotkeys()
hk.register(('control', 'shift', 'h'), callback=lambda:print("Easy!"))
To unregister a hotkey
hk.unregister(('control', 'shift', 'h'))
There are api plans to allow something like the following:
def some_func(self, event, hotkey, args):
pass
hk = SystemHotkeys(consumer=some_func)
So you have a master function that receives all hotkey presses and can delegate as desired.
Original Release
To be done
Mac support
eta > 6 months
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for system_hotkey-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 464d070d1827e64abd1c2c2f9a892ff310002425bf7b24e2e168ce08cfbc563e |
|
MD5 | 9f981e99877550064321efbe771b5063 |
|
BLAKE2b-256 | 7947aa17af29c3e2a4f748e047d4d261a076cab68ea63d8b82591ad32771dfe9 |