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

Write cover art to /tmp file #111

Open
danielwerg opened this issue Dec 13, 2024 · 0 comments
Open

Write cover art to /tmp file #111

danielwerg opened this issue Dec 13, 2024 · 0 comments

Comments

@danielwerg
Copy link

mpDris2 writes file cover-rand.jpg to /tmp (https://github.com/eonpatapon/mpDris2/blob/4a7dc031ca6b3f944983deede5309237115e27c4/src/mpDris2.in.py#L757)

That makes it possible to display notification with current track info:

notify-send "test" -i "$(playerctl metadata --format "{{ mpris:artUrl }}" | awk -F "file://" '{print $NF}')"

Note: | awk -F "file://" '{print $NF}') needed in dunst 1.12.0

When I tried that with mpv and mpv-mpris I realized mpv-mpris outputs base64 for artUrl.

Can we have an option for mpv-mpris to write cover art to /tmp file?

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

1 participant