+ imgPreviewer.sh

This commit is contained in:
committer@tuxwarrior
2026-02-27 13:36:56 -05:00
parent 5e410428e5
commit a1040ec4ac
2 changed files with 18 additions and 11 deletions

13
dots/bin/imgPreviewer.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
file="$1"
case "$file" in
*.png|*.jpg|*.jpeg|*.gif|*.bmp|*.tiff|*.webp)
# 260227: img2sixel is (currently) not supported by kitty
# img2sixel -w "$(tput cols)" "$file"
kitty +kitten icat "$file"
;;
*)
echo "Unsupported image format"
exit 1
;;
esac