diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-06 16:12:31 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-06 16:12:31 +0900 |
| commit | e74a59ddd68b989f314d0fc804af9c4b069e70d9 (patch) | |
| tree | a9d4a33e8c275a28401af22c1a62c4442e5b9896 /mac/.config/lf/scope | |
| parent | dec7dc8529c1100aad1a20a5be4b38f85534586a (diff) | |
modified lf/lfrc, modified lf/scope
Diffstat (limited to 'mac/.config/lf/scope')
| -rwxr-xr-x | mac/.config/lf/scope | 5 |
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) |
