Crates.io | mpd-discord-rpc |
lib.rs | mpd-discord-rpc |
version | 1.7.3 |
source | src |
created_at | 2020-02-13 23:23:22.486311 |
updated_at | 2024-06-13 21:14:32.309991 |
description | Displays your currently playing song / album / artist from MPD in Discord using Rich Presence. |
homepage | |
repository | https://github.com/JakeStanger/mpd-discord-rpc |
max_upload_size | |
id | 208145 |
size | 89,096 |
Displays your currently playing song / album / artist from MPD in Discord using Rich Presence, along with the album art.
It includes support for multiple MPD hosts if, like me, you have more than one server you alternate between.
The program does not require MPD or Discord to be running in order to run.
Once installed just run mpd-discord-rpc
.
The cargo package can be found here.
cargo install mpd-discord-rpc
Two AUR packages are available:
The systemd unit is included and can be started with:
systemctl --user enable --now mpd-discord-rpc
You can use the mpd-discord-rpc
package in nixpkgs. Users of home-manager can also use the services.mpd-discord-rpc.enable
option.
Many thanks to Ilan Joselevich for maintaining both of those.
Running the program once will generate a default configuration file. On Linux this will be at ~/.config/discord-rpc/config.toml
elapsed
, left
or off
. Falls back to elapsed
."notes"
by default. Setting this to ""
disables the large image."notes"
by default. Setting this to ""
disables the small image.""
disables the hover.""
disables the hover.Any part of the format string that does not match one of these tokens will be displayed as is. The following will automatically be replaced with their value from MPD:
$title
$album
$artist
$albumartist
$date
$track
$disc
$genre
$duration
$elapsed
This configuration file is automatically generated if one does not exist. It is included here for reference.
id = 677226551607033903
hosts = ["localhost:6600"]
[format]
details = "$title"
state = "$artist / $album"
timestamp = "elapsed"
large_image = "notes"
small_image = "notes"
large_text = ""
small_text = ""
Album art is pulled from the MusicBrainz database and Album Art Archive automatically. You'll only get a cover if it can be found though; there's a couple of things you can do to help this: