diff options
Diffstat (limited to '.config/lf/previewer')
-rwxr-xr-x | .config/lf/previewer | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/lf/previewer b/.config/lf/previewer new file mode 100755 index 0000000..8f04c1a --- /dev/null +++ b/.config/lf/previewer @@ -0,0 +1,11 @@ +#!/bin/sh +case "$(file -Lb --mime-type -- "$1")" in + image/*) + chafa -f sixel -s "$2x$3" --animate off --polite on "$1" + exit 1 + ;; + text/*) + #cat "$1" + pygmentize -g $1 + ;; +esac |