Deno + JavaScript for Automation (JXA) Discord Rich Presence Client for the macOS Apple Music app (Catalina and later) and legacy iTunes.
Works with local tracks and Apple Music streaming service.
- Can be launched in background at login.
- No status bar icon clutter.
- Presence is only enabled when actually playing something.
- Apple Music matching (#5).
- Spotify search button (#59).
- MusicBrainz artwork fallback (#66)
![Capture d’écran 2023-09-12 à 17 33 34](https://private-user-images.githubusercontent.com/20094890/267471582-6b851575-176b-408d-83a1-c1f5c5106d16.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMjc2MzksIm5iZiI6MTcyNDEyNzMzOSwicGF0aCI6Ii8yMDA5NDg5MC8yNjc0NzE1ODItNmI4NTE1NzUtMTc2Yi00MDhkLTgzYTEtYzFmNWM1MTA2ZDE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDA0MTUzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwNWMxOTYwMDIyMmYxYzhhNWM3NWVjMzJlM2M4Y2NmMjgzMWRlMTMyZDM2OGJiZDEwODQ4OTE2OWVlYjBlZTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.u_mjhu-qPORx9ULAEoFLmJbI5Vc-Cw56kLWt1Cq1Hec)
Choose one of the two methods below to install the script and enable the macOS launch agent that starts it on login.
After installing Homebrew, execute the following commands:
brew tap nextfire/tap
brew install apple-music-discord-rpc
brew services restart apple-music-discord-rpc
These commands
- add this tap to Homebrew,
- install its
apple-music-discord-rpc
formula (and Deno), - enable the launch agent and start it immediately.
The music-rpc.ts
executable is now also in PATH
.
brew services stop apple-music-discord-rpc
brew remove apple-music-discord-rpc
brew untap nextfire/tap
Install Deno, 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 edit it accordingly.
cd apple-music-discord-rpc/
./scripts/uninstall.sh
cd ../
rm -rf apple-music-discord-rpc/