Code Monkey home page Code Monkey logo

discordrp-mpris's Introduction

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

Recommended

  • Arch Linux: AUR
systemctl --user enable discordrp-mpris.service --now

Manual

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

# Usage
discordrp-mpris

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

pipenv

Requires pipenv.

git clone https://github.com/FichteFoll/discordrp-mpris
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:

  • Media Player Daemon
  • Media Player Classic Qute Theater
  • mpv
  • VLC Media Player

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

The following players are not supported:

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.

discordrp-mpris's People

Contributors

fichtefoll avatar jerbob avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.