Skip to main content

Easily handle media keys on OS X.

Project description

osxmmkeys is a simple Python library for handling media keys on OS X. The default behaviour can be prevented and overridden entirely.

Supported keys are:

  • play_pause

  • next_track

  • prev_track

  • mute

  • volume_down

  • volume_up

  • backlight_down

  • backlight_up

  • kb_backlight_down

  • kb_backlight_up

Usage:

import osxmmkeys

def play_pause():
    print("Play/pause key was pressed")

tap = osxmmkeys.Tap()
tap.on('play_pause', play_pause)
tap.run()

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

osxmmkeys-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file osxmmkeys-0.0.1.tar.gz.

File metadata

  • Download URL: osxmmkeys-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for osxmmkeys-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9bfdead502589c5523ad51e6c356853783a65d42c9b45ea447c8ed9c5c0d399b
MD5 86d99c48d8ebdca6727a9265216006e7
BLAKE2b-256 25527287b59c03455190841469a8555b8c003529c4359bcdf1d92084f91bf8fe

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