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 # lf settings
sudo cp lf_preview.sh /usr/local/bin sudo cp lf_preview.sh /usr/local/bin
cat << 'EOF' > lfrc cat << 'EOF' > lfrc
set sixel true
set previewer lf_preview.sh set previewer lf_preview.sh
cmd trash %set -f; mv $fx ~/.trash cmd trash %set -f; mv $fx ~/.trash
map <delete> trash map <delete> trash

View File

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