Skip to main content

Control mpd with the OS X media keys.

Project description

Control mpd with the OS X media keys.

Installation

To install osxmpdkeys with pip, use:

$ pip install osxmpdkeys

Usage

In the simplest case, just run mpdkeys. The default mpd host address is localhost:6600.

usage: mpdkeys [-h] [--host HOST] [--port PORT]

optional arguments:
--host HOST  mpd host address
--port PORT  mpd host port

If you want to have mpdkeys start automatically upon login, you can create a LaunchAgent like so:

$ cat <<EOF> ~/Library/LaunchAgents/com.github.pushrax.osxmpdkeys.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>com.github.pushrax.osxmpdkeys</string>
    <key>Program</key>
    <string>/usr/local/bin/mpdkeys</string>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
  </dict>
</plist>
EOF

Next time you log in, launchd will pick up the configuration automatically.

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

osxmpdkeys-1.0.3.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file osxmpdkeys-1.0.3.tar.gz.

File metadata

  • Download URL: osxmpdkeys-1.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10

File hashes

Hashes for osxmpdkeys-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5180e03df739288a4272c7d97829058eb61749af456fb38ae12242f9845bb6fa
MD5 c5355ebd02ae649edb68d77330ceb9b8
BLAKE2b-256 b27d5175c18941753b796e153b2ad6d02266ad68519240029f38d68fe0e481f5

See more details on using hashes here.

Supported by

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