summaryrefslogtreecommitdiff
path: root/ar/.config/lf/scope
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.config/lf/scope')
-rwxr-xr-xar/.config/lf/scope4
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"