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 #72

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

Write cover art to /tmp file #72

danielwerg opened this issue Dec 13, 2024 · 2 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?


copy/pasted from hoyon/mpv-mpris#111

@eNV25
Copy link
Owner

eNV25 commented Dec 14, 2024

I'm currently not working this actively, because I don't like this implementation and I'm not completely satisfied with the code. I'm currently working a version with C++ and QtCore. I'll finish it and release it next month after I'm finished with Advent of Code 2024.

Anyway you should probably open a feature request for dunst to support base64.

@danielwerg
Copy link
Author

Anyway you should probably open a feature request for dunst to support base64.

Forgot to mention that because how long most cover art images encoded in base64 are you would get "Argument list too long" error

echo $(( $(getconf ARG_MAX) - $(env | wc -c) )): 2091273

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