commit 3e474b8a20ef49de388ad69e9c0f81b1a8b6022d
parent 28343bcfe22d452428c7db3b77712d213fa0b81f
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 4 May 2020 14:55:00 +0200
lf: use sxiv for image viewing
Former-commit-id: bfb1f1258879e839c7d8774acce480208007e9eb
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lf/lfrc b/lf/lfrc
@@ -31,6 +31,7 @@ set previewer ~/.config/lf/preview.sh
cmd _open &{{
case $(file --mime-type "$f" -b) in
text/*|application/json) $EDITOR $fx;;
+ image/*) sxiv $fx 2>&1 & disown;;
application/epub+zip) ebook-viewer $fx >/dev/null 2>&1 & disown;;
*) for f in $fx; do $OPENER "$f" > /dev/null 2> /dev/null & disown; done;;
esac