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


Release history Release notifications

History Node

0.0.4

History Node

0.0.3

This version
History Node

0.0.2

History Node

0.0.1

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
osxmmkeys-0.0.2.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None Apr 13, 2014

Supported by

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