]> Freerunner's - dotfiles.git/commitdiff
lf: fix img preview
authorAndre Ramnitz <tux.rising@gmail.com>
Sun, 7 Jan 2024 11:29:25 +0000 (12:29 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:53 +0000 (18:18 +0200)
config/lf/previewer.sh
local/bin/lfrun

index a38e527a6838295ebcb967fc8e63fead1a5604a1..8759fdee3faa71d823e0ab00258b1fa4b6ece323 100755 (executable)
@@ -20,7 +20,7 @@ file="$1"
 shift
 
 if [ -n "$FIFO_UEBERZUG" ]; then
-  case "$(file -Lb --mime-type -- "$file")" in
+  case $(file -Lb --mime-type -- "$file") in
     image/*)
       orientation="$(identify -format '%[EXIF:Orientation]\n' -- "$file")"
       if [ -n "$orientation" ] && [ "$orientation" != 1 ]; then
index ab0e80c36b7144753112b0256eb24bd7522fbe35..8952d5d0cb1d67021a467ffada4ef86e20ce9988 100755 (executable)
@@ -15,7 +15,7 @@ if [ -n "$DISPLAY" ]; then
   }
 
   mkfifo "$FIFO_UEBERZUG"
-  ueberzugpp layer -s <"$FIFO_UEBERZUG" &
+  ueberzugpp layer -s <"$FIFO_UEBERZUG" -o sixel &
   exec 3>"$FIFO_UEBERZUG"
   trap cleanup EXIT