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

Modify the playerctl metadata [KEY] command to accept multiple keys #68

Closed
b0o opened this issue May 22, 2018 · 2 comments
Closed

Modify the playerctl metadata [KEY] command to accept multiple keys #68

b0o opened this issue May 22, 2018 · 2 comments
Milestone

Comments

@b0o
Copy link

b0o commented May 22, 2018

Example:

$ playerctl metadata xesam:artist xesam:title mpris:length xesam:userRating
Bonobo
Outlier
475000000
1

See also: #64

@acrisci
Copy link
Member

acrisci commented Sep 29, 2018

IFS=$'\n'
metadata=($(playerctl metadata artist title))
echo "Now playing: ${metadata[0]} - ${metadata[1]}"

@acrisci
Copy link
Member

acrisci commented Oct 2, 2018

With #73, the better way to do this is:

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

@acrisci acrisci added this to the 1.0.0 milestone Oct 13, 2018
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

2 participants