ryantanrk / apple-music-discord-rpc

🎵 Discord Rich Presence client for the macOS Apple Music app (Deno + JavaScript for Automation)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apple-music-discord-rpc

Deno + JavaScript for Automation (JXA) Discord Rich Presence Client for the macOS Apple Music app (Catalina and later).

Works with local tracks and Apple Music streaming service.

Features

  • Can be started in background at login.
  • Minimalist: No status bar icon clutter and presence only shown when actually playing something.
  • Shows album artworks and links to Apple Music (when found) (#5).

image

Usage

Choose one of the two methods below to download the script and enable the launch agent that starts the script on login.

Homebrew

Install

With Homebrew installed, simply execute the following commands:

brew tap nextfire/tap
brew install apple-music-discord-rpc
brew services restart apple-music-discord-rpc

These commands

  • adds my tap to Homebrew,
  • installs the apple-music-discord-rpc formula (and Deno),
  • enables the launch agent on login and starts it.

The music-rpc.ts executable is also added to PATH.

Uninstall

brew services stop apple-music-discord-rpc
brew remove apple-music-discord-rpc
brew untap nextfire/tap

Scripts

Install

Install Deno then clone the repository and execute install.sh:

git clone https://github.com/NextFire/apple-music-discord-rpc.git
cd apple-music-discord-rpc/
./scripts/install.sh

It will copy the launch agent into ~/Library/LaunchAgents/ and correctly edit it.

Uninstall

cd apple-music-discord-rpc/
./scripts/uninstall.sh
cd ../
rm -rf apple-music-discord-rpc/

About

🎵 Discord Rich Presence client for the macOS Apple Music app (Deno + JavaScript for Automation)

License:MIT License


Languages

Language:TypeScript 89.9%Language:Shell 10.1%