1
0
Fork 0

fix and improve lf preview

This commit is contained in:
Luca Bilke 2023-02-14 13:52:58 +01:00
parent b6223ca0c0
commit 3684ee2853
2 changed files with 1 additions and 2 deletions

View File

@ -1,3 +1,2 @@
#!/usr/bin/env bash
kitty +kitten icat --clear --transfer-mode file

View File

@ -5,7 +5,7 @@ image() {
h=$3
x=$4
y=$5
kitty +kitten icat --transfer-mode file --place "${w}x${h}@${x}x${y}" -- "$f" && exit 1
kitty +kitten icat --clear --stdin no --silent --transfer-mode memory --place "${w}x${h}@${x}x${y}" "$f" >/dev/tty && exit 1
chafa "$f" -f symbols -s "$((w-2))x$h" && exit 1
echo -e "\e[31mImage previewer not installed\e[0m"
return 1