this post was submitted on 03 Oct 2026
27 points (100.0% liked)

Rust

8317 readers
15 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS
 

So yeah, as the probably unnecessarily long title says, this is a CLI that displays the current playing lyrics, but instead of trying to go online and fetch a match it just uses the already there xesam:asText property in MPRIS.

Sadly a lot of popular players that implement the MPRIS2 standard still don't implement that specific one, so it wont work with them. Even the one used in the showcase had to be modified, tho I am hopefully gonna upstream it soon.

I am very strict about AI usage, so for this project the only hint of AI that was used was for tab auto completion that is just used for boilerplate like, idk, implementing the Default trait for PlayerState (not including the actual tricky metadata_last_updated part). Safe to say it was only one notch above no AI at all.

So yeah, here you go give it a try and feel free to roast me, after all this is my first cli and cargo publish ;)

top 7 comments
sorted by: hot top controversial new old
[โ€“] Blauzahn@feddit.org 3 points 4 days ago (1 children)

Which players do actually support mpris this way?

[โ€“] AMA@piefed.zip 1 points 2 days ago

Not a lot. The only ones I know of are:

so yeah, a lot of people wont be able to use it :( tho they still can use one of the many that fetch from lrclib

[โ€“] Kissaki@programming.dev 2 points 3 days ago (1 children)

The Media Player Remote Interfacing Specification (MPRIS) is a standard D-Bus interface which aims to provide a common programmatic API for controlling media players.

This metadata is only for media streams, not something that would be embedded as metadata in a file?

[โ€“] AMA@piefed.zip 2 points 2 days ago

MPRIS is the spec that Linux desktops use to make players transfer metadata about the thing they are playing and its state.

For example: title, artists, cover art, position, playing/paused, etc...

It doesn't specify where the metadata should come from, for example the xesam:asText can be populated with lyrics from the metadata embedded in the song file itself, a companion .lrc file or even fetched from lrclib by the player, as long as the player is the one doing the IO and populating it.

[โ€“] Hexarei@beehaw.org 3 points 5 days ago

Alec Benjamin mentioned!

Neat project.

[โ€“] canaryWart@programming.dev 2 points 5 days ago (1 children)

There's another notch where you only ask questions and do the writing alone

[โ€“] AMA@piefed.zip 2 points 5 days ago

wdym?

I specifically don't use AI for questions, just read the docs.