I can't get the album art in Tmux
I used kitty+tmux,and chafa looks normal.
when I open the kew,everything will change: I lost my ablum art.
besides,if i make
set-titles on in .tmux.conf,when i open the Playlist View will send a strange string of gibberish to my bar and make my bar crash.
Yeah I haven't even started with tmux and making sure kew works there. I will look into it,.
Yeah I haven't even started with tmux and making sure kew works there. I will look into it,.
Thx!
I think I found the culprit. Do you want to help me verify if it works now?
run: git clone https://github.com/ravachol/kew.git cd kew make -ij4 ./kew
and try it.
oh, on kitty it still doesn't work for me. it says sixel image and then + signs.
I think I found the culprit. Do you want to help me verify if it works now?
run: git clone https://github.com/ravachol/kew.git cd kew make -ij4 ./kew
and try it.
Of course, it's my pleasure. I verified it using your method and it seems it's still not working.
Thanks!
I prevented the image from scrolling up and disappearing on konsole terminal. So it seems to work there. It also seems to work on foot.
But on kitty it does not display the image. Maybe @hpjansson knows what the problem is. There were some recent developments with tmux and chafa.
This is how it looks for me in kitty+tmux:
Hey, happy to help here in any way I can.
The underlying issue is that tmux supports sixel graphics natively, while kitty does not. So tmux renders it using a placeholder there. A proper long-term fix is either for tmux to support kitty graphics, or kitty to support sixels, so they can have a common graphics protocol.
However, kitty also supports a passthrough hack repurposing Unicode code points for placements on the grid. Chafa also supports this, and newer versions of the CLI tool should prefer it over sixels in a kitty-tmux environment.
From kew's perspective - the 1.16 version of the Chafa C API is right around the corner now, and it takes care of the detection and setting canvas parameters for passthrough etc. for you. With the 1.14 API you may still be able to look for the CHAFA_TERM_SEQ_BEGIN_KITTY_IMMEDIATE_VIRT_IMAGE_V1 seq in the detected ChafaTermInfo, and if it's set, do the following:
- Enable kitty graphics with
chafa_canvas_config_set_pixel_mode(). - Enable passthrough with
chafa_canvas_config_set_passthrough(). UseCHAFA_PASSTHROUGH_SCREENorCHAFA_PASSTHROUGH_TMUXdepending on which of theCHAFA_TERM_SEQ_BEGIN_SCREEN_PASSTHROUGHandCHAFA_TERM_SEQ_BEGIN_TMUX_PASSTHROUGHseqs is supported by theChafaTermInfo.
Thank you! I really appreciate that I can ask you about these things. I think it's better to wait for chafa 1.16 then.
@acdcbyl, maybe pressing b and using ascii images can be a temporary solution until the next chafa version comes out. It's not the same, but maybe more fun than nothing.
Thank you very much! I appreciate the contributions you guys made and I'll be waiting for the next version.
I have the same issue replicated on Konsole in Void.
@Stalloevan, Your album art disappears? Is this with tmux?
Not so much that it disappears, and more that it never appears. Just using default Konsole. This seems to be a distro specific issue, as it was working fine on Fedora KDE.
Weird. Thanks for reporting this. It's a different issue, I'll make a new issue for it.
@acdcbyl Chafa 1.16 has been released and I've made some changes. Do you want to try if this now works (kitty + tmux)?
git clone https://github.com/ravachol/kew.git cd kew make -j4 tmux ./kew
Okay, but I still can't get the album art.
Okay, but I still can't get the album art.
Oh, my chafa doesn't seem to be new, I went to try to pull the git package
Oh yeah, you need the new chafa.
I've used 1.16 but unfortunately it still doesn't show up
Hmm, and you did compile kew from source? and ran it with ./kew not kew?
Oh, sorry! I'm an idiot, I restarted tmux and everything is fine now. Thank you very much for your work.♥️
Nice...well I guess I'm closing this issue. Thank you for the help. Enjoy kew!