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

Implement album cover widget #53

Open
crocket opened this issue May 3, 2017 · 7 comments
Open

Implement album cover widget #53

crocket opened this issue May 3, 2017 · 7 comments

Comments

@crocket
Copy link

crocket commented May 3, 2017

I love album covers because they look beautiful and make it easy to differentiate songs.
I have yet to set up mpd, and I want to know if pms supports showing album cover images.

@kimtore
Copy link
Owner

kimtore commented May 3, 2017

Hi @crocket,
Short answer: no.
PMS is a console application. If you run your terminal with a big enough resolution, it should be feasible to render album art using jp2a or a similar application. Not sure how beautiful it would be, though.

@crocket
Copy link
Author

crocket commented May 3, 2017

As far as I know, ncurses applications can draw 24-bit images directly on graphical terminal emulators.
Ncmpcpp seems capable of this.

@kimtore kimtore changed the title Does pms show album cover images? Implement album cover widget May 12, 2017
@tremby
Copy link
Collaborator

tremby commented Aug 7, 2017

How does that work?

@crocket
Copy link
Author

crocket commented Aug 8, 2017

I found

ranger, a console file manager, has image preview as well.

@tremby
Copy link
Collaborator

tremby commented Aug 8, 2017

OK. Weird. Yeah, works on my urxvt. Though the areas of the terminal the cover art doesn't cover lose my regular transparent black background colour, which is a shame.

Is this just a urxvt thing, or how many terminals support this?

For me, works in urxvt, but doesn't in terminator, gnome-terminal, xterm, st.

@tremby
Copy link
Collaborator

tremby commented Aug 8, 2017

Honestly, though, this seems like the kind of thing best deferred to external scripts, since availability obviously depends heavily on the environment. If/when #69 is implemented there could be a hotkey to run a script such as this. Or you could already run something like this (disclaimer: that's my fork of a thing) to show album in a graphical popup whenever the song changes.

@crocket
Copy link
Author

crocket commented Aug 8, 2017

urxvt rendering method is supported only by urxvt.

w3mimgdisplay supports urxvt and partially supports st and other terminals.
w3mimgdisplay leads to flickers in st. Thus, I have to refresh the terminal often.

A promising rendering method is SIXEL which st could support in the near future.

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

3 participants