This commit is contained in:
Ray Elliott 2026-02-26 23:19:15 +00:00
commit 98c3a109c1
2 changed files with 25 additions and 17 deletions

9
lfrc
View file

@ -37,7 +37,7 @@ map O $mimeopen --ask $f
# text files and a file opener for the rest.
cmd open ${{
case $(file --mime-type $f -b) in
image/*) feh -FZd --conversion-timeout 2 --start-at $f . &;;
image/*) imv -f -n "$f" . &;;
text/*) $EDITOR $fx;;
*) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;
esac
@ -104,16 +104,17 @@ cmd zip ${{
set ratios '2:5'
cmd view ${{
feh -FZd $fs &
imv -f $fs &
}}
map t thumbs
cmd thumbs ${{
if [ -d "$f" ] ; then
feh -t -y128 -E128 $f &
imv "$f" &
else
feh -t -y128 -E128 &
imv -n "$f" . &
fi
}}
set previewer /home/ray/.config/lf/previewer.sh
set preview true