Skip to main content

A library to create macros on a linux system

Project description

Python library for creating system-wide macros on a linux machine. pyxmacros leverages the well known pyxhook library to connect to all X servers running on the machine and runs registered callback functions on desired keypress. Can also be triggered by lirc keypresses if desired.

usage

import xmacros

def run_task(key):
    print "key pressed: %s" %str(key)

if __name__ == "__main__":
    macro = xmacros()
    macro.register_action(key=190, mod=xmacros.MOD_ALT_L, callback=run_task)

    while True:
        pass

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyxmacros-0.8.tar.gz (7.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page