Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

System wide hotkeys

Project Description

System Hotkeys

Multiplatform system wide hotkeys for python 3,

Currently no mac or python2 support :(

Osx support is coming in a few years i would say!

Installation

the old
pip3 install system_hotkeys
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 SystemHotkesry
        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 recieves all hotkey presses and can delegate as desired

Original Release

To be done

Mac support

eta > 6 months

Authors and Contributors

Tiomthy Eichler

Release History

Release History

This version
History Node

2015.6.4

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
system_hotkey-2015.6.4-py2.py3-none-any.whl (27.0 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Jun 4, 2015
system_hotkey-2015.6.4.zip (35.7 kB) Copy SHA256 Checksum SHA256 Source Jun 4, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting