Skip to main content

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

Authors and Contributors

Timothy Eichler

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

system_hotkey-0.1.0.zip (31.1 kB view hashes)

Uploaded Source

Built Distribution

system_hotkey-0.1.0-py2.py3-none-any.whl (28.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page