altdesktop / playerctl

🎧 mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
GNU Lesser General Public License v3.0
2.43k stars 79 forks source link

Feature Request: Add support for the Identity property #168

Open freundTech opened 4 years ago

freundTech commented 4 years ago

Currently whenever playerctl uses the name of a player it used the bus name. MPRIS2 also has a property called Identity on the org.mpris.MediaPlayer2 (Not org.mpris.MediaPlayer2.Player) interface, which gives a human readable name.

It would be nice to have an option to get the identity of a player (For example playerctl identity)

acrisci commented 4 years ago

What about a format variable?

playerctl metadata --format '{{playerIdentity}}'
freundTech commented 4 years ago

Yes. That would also work.

I just thought that because most things have both a command and a format variable and Identity isn't really part of the metadata having a command for it would be more consistent with the rest of the application.