Skip to content
A wrapper for EasyRP (https://github.com/Pizzabelly/EasyRP) that tracks MPRIS playing status for Discord RPC for use on Linux.
Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit May 13, 2019
README.md Change playerctl to not ignore mpv May 25, 2019
mpris-rpc Change playerctl to not ignore mpv May 25, 2019

README.md

mpris-rpc

A wrapper for EasyRP that tracks MPRIS playing status for Discord RPC.

Usage

Dependencies: curl (used for downloading EasyRP on first run), playerctl, some player that supports MPRIS.

Just run mpris-rpc, and it will automatically update your Discord RPC status when a new song starts playing, the player status changes, or if the player changes. Run mpris-rpc stop to stop mpris-rpc.

On first run, ~/.local/share/mpris-rpc will be created, and EasyRP will be downloaded to ~/.local/share/mpris-rpc. If the song name, player status, or player changes, mpris-rpc updates EasyRP's config file with the new information. mpris-rpc runs in the background and gets the status of players that support MPRIS using the following:

playerctl  metadata --ignore-player=mpv --format '{{playerName}}|{{lc(status)}}|{{artist}}|{{title}}|{{position}}|{{mpris:length}}
You can’t perform that action at this time.