Friday, March 23, 2012

Controlling MPD via hotkeys in OS X

You can use Spark to set global hotkeys in OS X. Then, to control mpd with mpc, create AppleScript hotkeys with the following commands, and bind them to the desired key combination:

  • do shell script "/opt/local/bin/mpc prev"

  • do shell script "/opt/local/bin/mpc toggle"

  • do shell script "/opt/local/bin/mpc next"

No comments: