greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.82k stars 472 forks source link

[music] add support for Cider music player #1931

Closed welcoMattic closed 11 months ago

welcoMattic commented 11 months ago

Cider is a unofficial linux app for Apple Music, https://cider.sh/ It not leverage of MPRIS, but it provides REST/Websocket APIs.

MaxVerevkin commented 11 months ago

I believe it would be more productive and beneficial to either

In both of these cases every one would benefit from it, not just i3status-rs users. The second option shouldn't be that hard to implement.

welcoMattic commented 11 months ago

I just figured out that they use MPRIS. I will try to make it works with i3status-rust

welcoMattic commented 11 months ago

It works natively, but the documented command to get the player name busctl --user list | grep "org.mpris.MediaPlayer2." | cut -d' ' -f1 is not working like that on Arch.

I used to invert something to get it work: busctl list --user | grep "org.mpris.MediaPlayer2." | cut -d' ' -f1, it gives me org.mpris.MediaPlayer2.cider2, so cider2 as player name make the block working perfectly.

MaxVerevkin commented 11 months ago

is not working like that on Arch.

Hm, it works on my Arch..