summaryrefslogtreecommitdiff
path: root/mac/.config/lf/scope
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.config/lf/scope')
-rwxr-xr-xmac/.config/lf/scope5
1 files changed, 3 insertions, 2 deletions
diff --git a/mac/.config/lf/scope b/mac/.config/lf/scope
index 9ea395f..c5d7c3e 100755
--- a/mac/.config/lf/scope
+++ b/mac/.config/lf/scope
@@ -52,8 +52,9 @@ text/troff) man ./ "$1" | col -b ;;
text/* | */xml | application/json | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4 - 2))" -f "$1" ;;
audio/*) mediainfo "$1" || exit 1 ;;
video/* | application/octet-stream | application/vnd.rn-realmedia)
- CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
- [ ! -f "$CACHE" ] && ffmpegthumbnailer -i "$1" -o "$CACHE.jpg" -s 0 -q 5
+ # CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
+ # [ ! -f "$CACHE" ] &&
+ ffmpegthumbnailer -i "$1" -o "$CACHE.jpg" -s 0 -q 5
image "$CACHE.jpg" "$2" "$3" "$4" "$5" "$1"
;;
*/pdf)