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.

Source Distribution

pyxmacros-0.8.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file pyxmacros-0.8.tar.gz.

File metadata

  • Download URL: pyxmacros-0.8.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyxmacros-0.8.tar.gz
Algorithm Hash digest
SHA256 060a6b072e64877f66107f8048fc0d7003a298f52fbc23688f29fbaeaae4ecb5
MD5 cf9f588b460f4a0b2f65f075a91ea1f6
BLAKE2b-256 0e072a032b2452cc9120a4c60cbfac6044296ed6c4f330f76bd783ec45f0bdce

See more details on using hashes here.

Supported by

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