diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/lf/lfrc | 3 | ||||
-rwxr-xr-x | .config/lf/previewer | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc new file mode 100644 index 0000000..6e556f3 --- /dev/null +++ b/.config/lf/lfrc @@ -0,0 +1,3 @@ +set sixel +set previewer ~/.config/lf/previewer +set hidden! 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 |