From 966946130eab0f2ad845edacf8aa8ffdf786a7ce Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 29 Jun 2021 11:04:35 +0100 Subject: [PATCH] open feh in background --- lfrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lfrc b/lfrc index 57fbd8f..9d03cab 100644 --- a/lfrc +++ b/lfrc @@ -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 }}