From 41c1df54d4bbe3e07c16ed0db9821622cc13f5e4 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 28 Jun 2025 01:37:44 +0900 Subject: modified lf/cleaner, modified lf/scope, modified bin/fzffiles, modified bin/lfub, deleted bin/unewsboat --- ar/.config/lf/cleaner | 4 ++-- ar/.config/lf/scope | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ar/.config/lf') diff --git a/ar/.config/lf/cleaner b/ar/.config/lf/cleaner index c1ff854..a380dcd 100755 --- a/ar/.config/lf/cleaner +++ b/ar/.config/lf/cleaner @@ -1,5 +1,5 @@ #!/bin/sh -if [ -n "$FIFO_UEBERZUG" ]; then - printf '{"action": "remove", "identifier": "PREVIEW"}\n' >"$FIFO_UEBERZUG" +if [ -n "$FIFO_UEBERZUGPP" ]; then + printf '{"action": "remove", "identifier": "PREVIEW"}\n' >"$FIFO_UEBERZUGPP" fi diff --git a/ar/.config/lf/scope b/ar/.config/lf/scope index b270fe8..fc26f5e 100755 --- a/ar/.config/lf/scope +++ b/ar/.config/lf/scope @@ -7,8 +7,8 @@ IFS="$(printf '%b_' '\n')" IFS="${IFS%_}" image() { - if [ -f "$1" ] && [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1; then - printf '{"action": "add", "identifier": "PREVIEW", "x": "%s", "y": "%s", "width": "%s", "height": "%s", "scaler": "contain", "path": "%s"}\n' "$4" "$(($5 + 1))" "$(($2 - 1))" "$(($3 - 2))" "$1" >"$FIFO_UEBERZUG" + if [ -f "$1" ] && [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzugpp >/dev/null 2>&1; then + printf '{"action": "add", "identifier": "PREVIEW", "x": "%s", "y": "%s", "width": "%s", "height": "%s", "scaler": "contain", "path": "%s"}\n' "$4" "$(($5 + 1))" "$(($2 - 1))" "$(($3 - 2))" "$1" >"$FIFO_UEBERZUGPP" mediainfo --Output="Video;%Duration/String%" "$6" else mediainfo "$6" -- cgit v1.2.3