aboutsummaryrefslogtreecommitdiff
path: root/config/lf/previewer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/lf/previewer.sh')
-rwxr-xr-xconfig/lf/previewer.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/lf/previewer.sh b/config/lf/previewer.sh
index 05a1f34..981ef55 100755
--- a/config/lf/previewer.sh
+++ b/config/lf/previewer.sh
@@ -29,7 +29,10 @@ case "$1" in
*.[1-8]) man "$1" | col -b ;;
# Images
- *.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp) mediainfo "$1"; ;;
+ *.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp)
+ catimg -w "$((width * 2 * 3))" "$1";
+ echo "done"
+ ;;
#*.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp)
#~/scripts/image.sh draw "$1" "$x" "$y" "$width" "$height";