Fix lf sixel

This commit is contained in:
Digital Studium 2024-03-17 07:36:27 +03:00
parent e662d60893
commit 75cebed2e4
2 changed files with 5 additions and 4 deletions

View File

@ -40,6 +40,7 @@ sudo update-locale
# lf settings
sudo cp lf_preview.sh /usr/local/bin
cat << 'EOF' > lfrc
set sixel true
set previewer lf_preview.sh
cmd trash %set -f; mv $fx ~/.trash
map <delete> trash

View File

@ -8,10 +8,10 @@ case "$MIME" in
*application/pdf*)
pdftotext "$1" -
;;
# .jpeg
# *image/jpeg*)
# sxiv "$1"
# ;;
# .jpeg, png etc.
*image/*)
chafa -f sixel -s "$2x$3" "$1"
;;
# .7z
*application/x-7z-compressed*)
7z l "$1"