GithubHelp home page GithubHelp logo

jamadden / py-highsierramediakeyenabler Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 24 KB

Python version of https://github.com/milgra/highsierramediakeyenabler

License: The Unlicense

Python 100.00%
pyobjc macos media keyboard itunes

py-highsierramediakeyenabler's Introduction

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:

  • Changing the Safari search engine (issue 43)
  • Enabling kernel extensions (issue 42)

If those are fixed in the original, they might get fixed here.

py-highsierramediakeyenabler's People

Contributors

jamadden avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.