From 6287059d3442a1ad3eaa519db0e6ad581832ee0d Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Thu, 23 May 2024 17:06:03 +0200 Subject: [PATCH] clean up preview script --- .config/lf/preview/preview | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.config/lf/preview/preview b/.config/lf/preview/preview index b5d877e88..a9361a9f8 100755 --- a/.config/lf/preview/preview +++ b/.config/lf/preview/preview @@ -9,13 +9,9 @@ f="$(realpath "$1")" w=$2 h=$3 # x=$4 y=$5 image() { file=${1:-$f} - if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then - chafa "$file" -s "$((w - 2))x$h" --polite on - else - # shellcheck disable=2086 - chafa -f sixel -s "${w}x${h}" --polite on --animate false "$file" - exit 0 - fi + # shellcheck disable=2086 + chafa -f sixel -s "${w}x${h}" --polite on --animate false "$file" + exit 0 } video() {