You are not logged in.

#1 2021-01-15 20:01:06

callmer
Member
Registered: 2021-01-07
Posts: 80

[SOL]About image painting in terminal for sway (or for wayland at all)

As i got it isn't possible to use either w3m or ueberzug in sway (for first I am getting error, for second just can't see preview). I am using alacritty for it, but I can't find any other to use it compatible with sway. Maybe you know some way to do it? Use other terminal or image painting tool or is it necessary to switch into another wm? Thanks in advance.

Last edited by callmer (2021-01-16 06:54:47)

Offline

#2 2021-01-15 20:57:38

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOL]About image painting in terminal for sway (or for wayland at all)

One option would be kitty and its image protocol (ranger supports it)
https://sw.kovidgoyal.net/kitty/kittens/icat.html

The terminal foot (also in AUR)supports the sixel protocol, you can use lsix to display images, For ranger and w3m you can use yaimg-sixel to replace w3mimgdisplay.

Alacritty is planning to implement sixel: https://github.com/alacritty/alacritty/issues/910

Last edited by progandy (2021-01-15 20:59:26)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2021-01-15 21:20:57

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOL]About image painting in terminal for sway (or for wayland at all)

I can see the image previews under sway in kitty as long as PIL (Python pillow) is installed and preview_images_method is set to kitty but I'm using Alpine Linux so I don't know if this also works in Arch.


Jin, Jîyan, Azadî

Offline

#4 2021-01-16 06:54:22

callmer
Member
Registered: 2021-01-07
Posts: 80

Re: [SOL]About image painting in terminal for sway (or for wayland at all)

progandy wrote:

One option would be kitty and its image protocol (ranger supports it)
https://sw.kovidgoyal.net/kitty/kittens/icat.html

The terminal foot (also in AUR)supports the sixel protocol, you can use lsix to display images, For ranger and w3m you can use yaimg-sixel to replace w3mimgdisplay.

Alacritty is planning to implement sixel: https://github.com/alacritty/alacritty/issues/910

Thank you very much, kitty worked great for me. but I can't preview png files, how can I fix it? @progandy

Last edited by callmer (2021-01-16 07:41:38)

Offline

#5 2021-01-16 08:13:20

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOL]About image painting in terminal for sway (or for wayland at all)

Preview where? And how did you configure your programs? If you use ranger, did you sett the image preview method and installed python-pillow as mentioned by Head_on_a_Stick?

Last edited by progandy (2021-01-16 08:18:55)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#6 2021-01-16 13:03:07

callmer
Member
Registered: 2021-01-07
Posts: 80

Re: [SOL]About image painting in terminal for sway (or for wayland at all)

progandy wrote:

Preview where? And how did you configure your programs? If you use ranger, did you sett the image preview method and installed python-pillow as mentioned by Head_on_a_Stick?

Preview in kitty terminal in ranger. Here I shared my rc.conf and scope.sh. Yes I've set preview method kitty and I've installed python-pillow(what is head_on_a_stick?) I am able to preview jpg's and even videos, but not png's.

Offline

#7 2021-01-16 15:24:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,626

Re: [SOL]About image painting in terminal for sway (or for wayland at all)

Where did you share them?

Head_on_a_Stick is the user that posted comment #3 …

Online

#8 2021-01-16 18:59:36

callmer
Member
Registered: 2021-01-07
Posts: 80

Re: [SOL]About image painting in terminal for sway (or for wayland at all)

seth wrote:

Where did you share them?

Head_on_a_Stick is the user that posted comment #3 …

Oh my apologizes. Here https://github.com/aro1999/my_arch
And yes I did it all as I mentioned above
Edit: in master branch

Last edited by callmer (2021-01-16 19:01:47)

Offline

Board footer

Powered by FluxBB