Comments (9)
I know that there are some protocols that other terminals use for rendering images on Wayland, I will look into how to implement those into ctpv.
If it helps, Wezterm supports the iTerm image protocol and comes with a an example renderer utility like icat.
from ctpv.
I've switched to Wayland recently. Just letting you know, 'cause it means that I am now more motivated to find a solution for this problem. 😅
from ctpv.
Ueberzug is Xorg only, it's not supported on Wayland. You can try using Kitty terminal, it supports normal image rendering on Wayland. I know that there are some protocols that other terminals use for rendering images on Wayland, I will look into how to implement those into ctpv.
from ctpv.
maybe ncls can be a great tool?
from ctpv.
Many terminals seem to support Sixel format but lf, for which ctpv was written, doesn't support it.
There was an attempt to add support for Sixel to lf but it didn't work out.
from ctpv.
Actually, previews do work on xwayland terminals like alacritty, kitty, urxvt, etc. But on "wayland only" terminals such as foot, I still have issues with previewing.
For wayland, you can use kitty
, kitty's icat utility can help you to preview images. Also, wezterm
supports iTerm2 inline images protocol. I don't know if other terminal emulators have similar things.
I tested ncls
and chafa
in foot
terminal, ncls
has better color however it is not as good as it in other terminal emulators.
from ctpv.
But on "wayland only" terminals such as foot, I still have issues with previewing.
Could you please elaborate which issues you have when using foot? Image previews are low resolution or don't work at all?
from ctpv.
Guys, I've found a potential solution: #25 (comment)
You need to:
- Use a terminal that supports sixel format (e.g., foot)
- Install this fork of lf that supports sixel
- Update ctpv to the latest commit and add
set autochafa
option in your ctpv config.
from ctpv.
Fixed! See docs on how to setup here: https://github.com/NikitaIvanovV/ctpv/blob/0c882097f672b8d07c96f95296d904f3d5a81083/README.md#wayland
from ctpv.
Related Issues (20)
- Preview imgs/pdfs/videos has weird characters
- ctpv: config:1:2 cannot handle character:
- Can't change previewer for tar.gz
- ueberzugpp support on wayland HOT 1
- Add support for epub
- Is it possible to keep the cached visualizations? Generate previews early and make them faster? HOT 1
- videos previews load too long
- Is there some way to use it with alacrity
- video cover support
- File previews persisting over new tabs
- change font preview helper
- every file is previewed as text now HOT 2
- Release v1.1.1
- Previews are not getting cleared properly inside tmux
- `chafa` v1.14.0 messes up sixel image previews HOT 3
- [ERROR] environment: line 104: /dev/tty: No such device or address
- Audio previews not showing album image HOT 2
- text/plain files not using bat HOT 1
- Disable previews for .djvu image files HOT 1
- how to make it compile for freebsd? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctpv.