diff options
Diffstat (limited to 'ar/.config/lf')
| -rwxr-xr-x | ar/.config/lf/cleaner | 4 | ||||
| -rwxr-xr-x | ar/.config/lf/scope | 4 |
2 files changed, 4 insertions, 4 deletions
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" |
