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

format string argument for metadata command #73

Closed
acrisci opened this issue May 22, 2018 · 1 comment
Closed

format string argument for metadata command #73

acrisci opened this issue May 22, 2018 · 1 comment
Milestone

Comments

@acrisci
Copy link
Member

acrisci commented May 22, 2018

Playerctl metadata queries should accept a format string like this:

$ playerctl metadata --format='%xesam:artist - %xesam:title'

This prints Katy Perry - Rise.

This covers what is probably the most common use case for formatting the metadata command.

@acrisci
Copy link
Member Author

acrisci commented Oct 2, 2018

Started on this work in 8788d99 which implements this feature like

playerctl metadata --format 'now playing: {{artist}} - {{title}}'

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

No branches or pull requests

1 participant