Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to obtain the current playing song using a command? #715

Open
hykilpikonna opened this issue Nov 12, 2024 · 1 comment
Open

How to obtain the current playing song using a command? #715

hykilpikonna opened this issue Nov 12, 2024 · 1 comment

Comments

@hykilpikonna
Copy link

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

@237dmitry
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants