Python version of HighSierraMediaKeyEnabler
Project description
Media Keys on macOS High Sierra
This project is a version of HighSierraMediaKeyEnabler written in Python for simplicity using PyObjC.
In short, it makes it so that Safari cannot steal the media keys: the media keys always control iTunes. (I usually have TweetDeck open in a Safari window, and if TweetDeck has tried to send a notification, Safari would grab the media keys to just replay the tweet sound; the only way to get them back to iTunes was to click the mouse—ugh!)
Using
After installing, you will have a command mediakeyenabler. Run it. End it with Ctrl-C or sending the equivalent signal to the PID.
Known Limitations
I don’t use spotify, so this only supports iTunes.
I don’t ever want it to start iTunes, so it only does anything if iTunes is already running.
I’ve never wanted to fast forward or rewind, only restart the track or go to the next one (in fact I didn’t know FF and rewind were possible) so this program doesn’t do that.
No GUI (at least not yet), it’s just a command line program.
Known Limitations in the Original
There are some known limitations in the original that this project inherites due to the basic design using a CGEventTap. Notably, certain operations cannot be done when the program is running:
If those are fixed in the original, they might get fixed here.
Changes
0.0.1 (2018-07-22)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for py-HighSierraMediaKeyEnabler-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a52fcfdf36e79e1ddcf5a471a67c20100060cb34d494f80110deb3d7f23d6e |
|
MD5 | 8588800a1cecda18ecd5d3acdae9d559 |
|
BLAKE2b-256 | 7fcd5b15e51d27da33dcb993ce5544d142bcbfb3ca80e30766574b265dc39a82 |
Hashes for py_HighSierraMediaKeyEnabler-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed6eddf307506b1b2651790f8c4f14349588bdb53aed30876af11a879b851414 |
|
MD5 | c7b206ae66cef83c2bdd0ac5847a9cee |
|
BLAKE2b-256 | 699d74bd85a773352f299fa81bb0504e544a9ea04ffce0a9b87257a9604c96a5 |