2
0
Fork 0

Preview de arquivos de vídeo

This commit is contained in:
0x736561 2024-03-27 14:49:37 -03:00
parent 67ea552208
commit d35ed35135

View file

@ -8,6 +8,12 @@ case "$(file -Lb --mime-type -- "$1")" in
audio/*)
mediainfo "$1"
;;
video/*)
ffmpegthumbnailer -i "$1" -s 0 -o ~/.config/lf/.thumb.png
chafa -f sixel -s "$2x$3" --animate off --polite on ~/.config/lf/.thumb.png
rm ~/.config/lf/.thumb.png
exit 1
;;
*)
bat -f --style plain --theme gruvbox-dark "$1"
;;