open feh in background

This commit is contained in:
Ray Elliott 2021-06-29 11:04:35 +01:00
parent e8157acbed
commit 966946130e
1 changed files with 4 additions and 4 deletions

8
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 $fx .;;
image/*) feh -FZd --conversion-timeout 2 $fx . &;;
text/*) $EDITOR $fx;;
*) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;
esac
@ -104,15 +104,15 @@ cmd zip ${{
set ratios '2:5'
cmd view ${{
feh -FZd $fs
feh -FZd $fs &
}}
map t thumbs
cmd thumbs ${{
if [ -d "$f" ] ; then
feh -t -y128 -E128 $f
feh -t -y128 -E128 $f &
else
feh -t -y128 -E128
feh -t -y128 -E128 &
fi
}}