Discordrp Mpris Save

Discord Rich Presence through media players providing the mpris2 dbus interface

Project README

Discord Rich Presence through mpris

User Modal Popout Modal

discordrp-mpris provides Rich Presence to Discord clients based on music or other media that you are playing and that is exposed through the mpris2 D-Bus interface. Thus, it only works on systems where D-Bus is available and not on Windows.

discordrp-mpris is intended to run in the background alongside your local Discord client and your media player(s). Multiple media players are supported and the ones with active playback are prioritized. The most recently active player will then be followed until it is no longer playing and a different player starts playback.

This project is in beta stage.

Installation & Usage

Requirements:

  • Python 3.6 or higher
  • Arch Linux: AUR
systemctl --user enable discordrp-mpris.service --now

Manual

pip install git+https://github.com/FichteFoll/discordrp-mpris.git

# Usage
discordrp-mpris

You might also want to use pip install --user instead.

pipenv

Requires pipenv.

git clone https://github.com/FichteFoll/discordrp-mpris.git
cd discordrp-mpris
pipenv install

# Usage
pipenv run python -m discordrp-mpris

Media Players

The following media players are known to be supported:

Icons are available for:

  • Clementine
  • Lollypop
  • Media Player Daemon
  • Media Player Classic Qute Theater
  • Mozilla Firefox
  • mpv
  • SMPlayer
  • VLC Media Player

When no player icon is available, the playback state is used as the large icon.

The following players are not supported:

  • Spotify (conflicts with its own Rich Presence, #4)
  • mps-youtube (doesn't implement introspectable DBus properties, mps-youtube/mps-youtube#839)

Configuration

Configuration may be provided in a config.toml file using the TOML format and located in the folders $XDG_CONFIG_HOME/discordrp-mpris or $HOME/.config/discordrp-mpris.

For available options, see the default config.toml.

Open Source Agenda is not affiliated with "Discordrp Mpris" Project. README Source: FichteFoll/discordrp-mpris
Stars
86
Open Issues
13
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating