This project integrates the cmus music player with Discord Rich Presence. It displays the title, artist, and playback progress of the currently playing track. Album art is also retrieved from the iTunes Search API and displayed if found.
First ensure you have Rust installed; if not, install it using your method of choice. Then run:
git clone https://github.com/HoWingYip/cmus-discord-rich-presence
cd cmus-discord-rich-presence
./scripts/install.sh
Recommended: to automatically start the program on login, additionally run:
./scripts/add-service.sh
The above command will only work if you're using systemd.
If you added the service as recommended above, no further action is needed.
If you didn't, you'll need to manually run cmus-discord-rich-presence
in your shell of choice. Optionally run it in the background using cmus-discord-rich-presence & disown
.
./scripts/uninstall.sh
The above script deletes the binary from ~/.local/bin/
and removes the service if installed.