diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-28 01:37:44 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-28 01:37:44 +0900 |
| commit | 41c1df54d4bbe3e07c16ed0db9821622cc13f5e4 (patch) | |
| tree | db20c2cfc9d01c70f999785fafb0852c0d7a7635 /ar/.config/lf/scope | |
| parent | bdb59276699429f4044f6abf522b610f1f6b95e7 (diff) | |
modified lf/cleaner, modified lf/scope, modified bin/fzffiles, modified bin/lfub, deleted bin/unewsboat
Diffstat (limited to 'ar/.config/lf/scope')
| -rwxr-xr-x | ar/.config/lf/scope | 4 |
1 files changed, 2 insertions, 2 deletions
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" |
