musikcube icon indicating copy to clipboard operation
musikcube copied to clipboard

How to obtain the current playing song using a command?

Open hykilpikonna opened this issue 1 year ago • 1 comments
trafficstars

A musikcube user opened a feature request https://github.com/hykilpikonna/hyfetch/issues/364 to display musikcube's current playing song on neofetch. How can I obtain this information using one command?

hykilpikonna avatar Nov 12 '24 02:11 hykilpikonna

How can I obtain this information using one command?

I think the best solution for now would be parsing of playerctl metadata. Something like:

playerctl metadata --format "Now playing: {{ artist }} - {{ album }} - {{ title }}"

https://github.com/altdesktop/playerctl

237dmitry avatar Nov 13 '24 08:11 237dmitry

How can i get it on macOS? becase musikcube is not registering the playback on MPNowPlayingInfoCenter, so I cannot get the song info or control it using nowplaying-cli

Else00 avatar Jul 01 '25 08:07 Else00