diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/lf/lfrc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 32f8409..c9e670c 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -42,11 +42,11 @@ set icons # Custom Functions cmd open ${{ - case $(file --mime-type "$f" -bL) in - image/*) imv "$f";; - *pdf*) zathura "$f";; + case $(file --mime-type $f -bL) in + image/*) setsid imv $f >/dev/null 2>&1 &;; + *pdf*) setsid zathura $fx >/dev/null 2>&1 & ;; text/*|application/json) $EDITOR "$f";; - video/*) mpv "$f";; + video/*) setsid mpv $f -quiet >/dev/null 2>&1 & ;; *) for f in $fx; do setsid $OPENER $f 2>/dev/null & done ;; esac }} |