From 05cf5113be816ce12e98f580a2858090cfb028bd Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Thu, 25 Jan 2024 19:37:46 +0000 Subject: Fix for image previews in LF using Chafa as it breaks in Chafa 1.14 --- .config/lf/previewer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.config/lf/previewer.sh') diff --git a/.config/lf/previewer.sh b/.config/lf/previewer.sh index 7995985..764758b 100755 --- a/.config/lf/previewer.sh +++ b/.config/lf/previewer.sh @@ -20,19 +20,19 @@ case "$(printf "%s\n" "$(readlink -f "$1")" | awk '{print tolower($0)}')" in exit 1 ;; *.jpg|*.jpeg|*.png|*.bmp|*.xpm|*.gif) - chafa -f sixel -s "$2x$3" --animate false "$1" + chafa -f sixel -s "$2x$3" --animate false "$1" --polite on exit 1 ;; *.pdf) CACHE=$(mktemp) pdftoppm -png -f 1 -singlefile "$1" "$CACHE" - chafa -f sixel -s "$2x$3" --animate false "$CACHE.png" + chafa -f sixel -s "$2x$3" --animate false "$CACHE.png" --polite on rm "$CACHE" ;; *.avi|*.mp4|*.wmv|*.dat|*.3gp|*.ogv|*.mkv|*.mpg|*.mpeg|*.vob|*.fl[icv]|*.m2v|*.mov|*.webm|*.ts|*.mts|*.m4v|*.r[am]|*.qt|*.divx) CACHE=$(mktemp) ffmpegthumbnailer -i "$1" -o "$CACHE" -s 0 - chafa -f sixel -s "$2x$3" --animate false "$CACHE" + chafa -f sixel -s "$2x$3" --animate false "$CACHE" --polite on rm "$CACHE" ;; *) -- cgit v1.2.3