Fix lf sixel
This commit is contained in:
parent
e662d60893
commit
75cebed2e4
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue