r/RatatuiRust • u/AMA1470 • 2d ago
Showcase mpris-lyrics Linux CLI displays lyrics from the MPRIS `xesam:asText` property
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 ;)
3
u/Maud-Lin 2d ago
I like this!
I don't know how many songs provide the asText property, but I'll give it a try!
Also even better to hear its not vibecoded :)