open feh in background
This commit is contained in:
parent
e8157acbed
commit
966946130e
8
lfrc
8
lfrc
|
@ -37,7 +37,7 @@ map O $mimeopen --ask $f
|
||||||
# text files and a file opener for the rest.
|
# text files and a file opener for the rest.
|
||||||
cmd open ${{
|
cmd open ${{
|
||||||
case $(file --mime-type $f -b) in
|
case $(file --mime-type $f -b) in
|
||||||
image/*) feh -FZd --conversion-timeout 2 $fx .;;
|
image/*) feh -FZd --conversion-timeout 2 $fx . &;;
|
||||||
text/*) $EDITOR $fx;;
|
text/*) $EDITOR $fx;;
|
||||||
*) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;
|
*) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;
|
||||||
esac
|
esac
|
||||||
|
@ -104,15 +104,15 @@ cmd zip ${{
|
||||||
set ratios '2:5'
|
set ratios '2:5'
|
||||||
|
|
||||||
cmd view ${{
|
cmd view ${{
|
||||||
feh -FZd $fs
|
feh -FZd $fs &
|
||||||
}}
|
}}
|
||||||
|
|
||||||
map t thumbs
|
map t thumbs
|
||||||
cmd thumbs ${{
|
cmd thumbs ${{
|
||||||
if [ -d "$f" ] ; then
|
if [ -d "$f" ] ; then
|
||||||
feh -t -y128 -E128 $f
|
feh -t -y128 -E128 $f &
|
||||||
else
|
else
|
||||||
feh -t -y128 -E128
|
feh -t -y128 -E128 &
|
||||||
fi
|
fi
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue