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 (Music on Catalina). (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.2 (2020-04-09)
Updates to work an macOS Catalina.
Add support for Python 3.8.
0.0.1 (2018-07-22)
Initial release.
Release files for py-HighSierraMediaKeyEnabler 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py-HighSierraMediaKeyEnabler-0.0.2.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_HighSierraMediaKeyEnabler-0.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 17.4 kB
Release files / py-HighSierraMediaKeyEnabler-0.0.2.tar.gz
| Download URL | py-HighSierraMediaKeyEnabler-0.0.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3c3d16eecdb37ccb781d6b458ae73ef22363287a7624e9cc239cd35807c5f1f
|
|
BLAKE2b-256 checksum How to use checksums |
16a6ce45250fd2023a4f1c074ee66c5c69ae578109e350df11288abbe4c70dd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
|
Release files / py_HighSierraMediaKeyEnabler-0.0.2-py2.py3-none-any.whl
| Download URL | py_HighSierraMediaKeyEnabler-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
81fbb0c03d6572e0d6e201bbd3b794a6ccb385e28ca8761e9602b8fc72f1fb7f
|
|
BLAKE2b-256 checksum How to use checksums |
7c8641f14722cd5f19e5c38c359fd2e7839e4f92835a3393555b310583fb15ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
|