Skip to content

A wrapper for EasyRP (https://github.com/Pizzabelly/EasyRP) that tracks MPRIS playing status for Discord RPC for use on Linux.

License

Notifications You must be signed in to change notification settings

simoniz0r/mpris-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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}}

About

A wrapper for EasyRP (https://github.com/Pizzabelly/EasyRP) that tracks MPRIS playing status for Discord RPC for use on Linux.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages