This is a preference pane for Mac OS X 10.7+ that enables hardware media keys (prev, play, next) to be routed to 3rd-party sandboxed applications in a nice way, without unwanted side effects. This has been specifically created with G-Ear, a native Google Music player for Mac in mind, but any suggestion or patch is welcome!
Switch branches/tags
Nothing to show
Clone or download
zsszatmari Merge pull request #15 from manikkalra/master
Added Relisten to supported players
Latest commit 210015d Dec 21, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MagicKeys-Agent Added Relisten to supported players Dec 21, 2015
MagicKeys.xcodeproj fixed problem preventing three-finger gesture working Oct 20, 2014
MagicKeys version bump Oct 30, 2015
.gitignore Initial commit Jul 25, 2012
README.md updated readme, credits, version number Jun 28, 2014

README.md

MagicKeys

This is a preference pane for Mac OS X 10.7+ that enables hardware media keys (prev, play, next) to be routed to 3rd-party sandboxed applications in a nice way, without unwanted side effects.

Although the prefpane was originally developed to complement G-Ear (see http://www.treasurebox.hu), it should work well with other applications, file a bug report (or even better, a pull request) if not. It can also launch a specified app on demand.

When the routing is enabled via the prefpane, a background is launched to do the actual work. It shouldn’t have any noticeable impact on performance, as it registers for Quartz “Event Taps”.

After uninstalling, a small (approx. 100bytes) file is left at ~/Library/Preferences/com.treasurebox.magickeys.plist for eventual future use. Apart from that, no permanent change is left on the system (the launch services entry which facilitates automatic start of the background process is invalidated by the system).

A screenshot is available at http://treasurebox-gear.s3.amazonaws.com/magickeys.png

License under a BSD-style 3-clause license, see MagicKeys/Credits.rtf.

Note: For compilation of the prefpane itself, Xcode 5.0.x needed, because of garbage collection. GC is not supported in later versions of Xcode. Lion however only supports prefPanes which are compiled with GC. If you don’t need compatibility with older OS X versions, you can always disable GC under build settings (see GCC_ENABLE_OBJC_GC)