Preview de arquivos de vídeo
This commit is contained in:
parent
67ea552208
commit
d35ed35135
|
@ -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"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue