diff options
Diffstat (limited to 'docs/image_previews/kitty.md')
-rw-r--r-- | docs/image_previews/kitty.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/image_previews/kitty.md b/docs/image_previews/kitty.md index 84c142d..6e00060 100644 --- a/docs/image_previews/kitty.md +++ b/docs/image_previews/kitty.md @@ -30,11 +30,20 @@ function image { "$1" 2>/dev/null } +function video { + ffmpegthumbnailer -i "$1" -o "${TMP_FILE}" -s 0 2>/dev/null + image "${TMP_FILE}" +} + case "$mimetype" in image/*) image "${FILE_PATH}" ;; *) + video/*) + video "${FILE_PATH}" + ;; + *) kitty +kitten icat \ --transfer-mode=file \ --clear 2>/dev/null |