diff options
author | Joe <rbo@gmx.us> | 2024-12-23 13:24:02 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-12-23 13:24:02 +0100 |
commit | ed6ba99b529448b589be792e5a5b9ebccf411679 (patch) | |
tree | 5559c28cbf3ba20fe702ca5bf3cc174f81bb93eb /.config/lf/lfrc | |
parent | up (diff) | |
download | dotfiles-bsd-ed6ba99b529448b589be792e5a5b9ebccf411679.tar.gz dotfiles-bsd-ed6ba99b529448b589be792e5a5b9ebccf411679.tar.bz2 dotfiles-bsd-ed6ba99b529448b589be792e5a5b9ebccf411679.tar.xz dotfiles-bsd-ed6ba99b529448b589be792e5a5b9ebccf411679.tar.zst dotfiles-bsd-ed6ba99b529448b589be792e5a5b9ebccf411679.zip |
up
Diffstat (limited to '.config/lf/lfrc')
-rw-r--r-- | .config/lf/lfrc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc index dc96a65..f79c712 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -21,21 +21,21 @@ cmd open ${{ text/html) $BROWSER $fx ;; text/plain) $PAGER $fx ;; text/*|application/json|inode/x-empty) bat --style=plain --tabs 4 --paging=always -f $fx ;; - image/x-xcf) setsid gimp $f >/dev/null 2>&1 ;; + image/x-xcf) gimp $f >/dev/null 2>&1 ;; image/svg+xml) display -- $f ;; image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" | nsxiv -aibof 2>/dev/null | while read -r file; do [ -z "$file" ] && continue lf -remote "send select \"$file\"" lf -remote "send toggle" - done & + done ;; - audio/*) setsid $TERMINAL -e mpv --no-audio-display --audio-channels=stereo $fx & ;; - video/*) setsid mpv --really-quiet --audio-channels=stereo $fx >/dev/null 2>&1 & ;; + audio/*) $TERMINAL -e mpv --no-audio-display --audio-channels=stereo $fx ;; + video/*) mpv --really-quiet --audio-channels=stereo $fx >/dev/null 2>&1 ;; *opendocument*) odt2txt $f | $PAGER ;; - application/pdf|application/vnd*|application/epub*) setsid zathura $fx >/dev/null 2>&1 ;; + application/pdf|application/vnd*|application/epub*) zathura $fx >/dev/null 2>&1 ;; application/pgp-encrypted) $EDITOR $fx ;; - *) for f in $fx; do setsid xdg-open $f >/dev/null 2>&1; done;; + *) for f in $fx; do xdg-open $f >/dev/null 2>&1; done;; esac }} |