summaryrefslogtreecommitdiffstats
path: root/.config/lf
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-07-04 17:26:32 +0200
committerJoe <rrbo@proton.me>2023-07-04 17:26:32 +0200
commit64a511c6f450c69073252ed9f2fb259f285c39fb (patch)
tree6eb0f00f619ebbfce779092dc8e1d440e31949be /.config/lf
parentup (diff)
downloaddotfiles-bsd-64a511c6f450c69073252ed9f2fb259f285c39fb.tar.gz
dotfiles-bsd-64a511c6f450c69073252ed9f2fb259f285c39fb.tar.bz2
dotfiles-bsd-64a511c6f450c69073252ed9f2fb259f285c39fb.tar.xz
dotfiles-bsd-64a511c6f450c69073252ed9f2fb259f285c39fb.tar.zst
dotfiles-bsd-64a511c6f450c69073252ed9f2fb259f285c39fb.zip
up
Diffstat (limited to '.config/lf')
-rw-r--r--.config/lf/lfrc12
1 files changed, 6 insertions, 6 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 662109b..611018b 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -17,11 +17,11 @@ cmd open ${{
case $(file --mime-type "$(readlink -f $f)" -b) in
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
application/vnd.openxmlformats-officedocument.wordprocessingml.document) docx2txt $f | $PAGER ;;
- image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) bsdsetsid zathura $fx >/dev/null 2>&1 ;;
+ image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid zathura $fx >/dev/null 2>&1 ;;
text/html) firefox $fx ;;
text/plain) $PAGER $fx ;;
text/*|application/json|inode/x-empty) bat --style=plain --tabs 4 --paging=always -f $fx ;;
- image/x-xcf) bsdsetsid gimp $f >/dev/null 2>&1 ;;
+ image/x-xcf) setsid 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
@@ -30,12 +30,12 @@ cmd open ${{
lf -remote "send toggle"
done &
;;
- audio/*) bsdsetsid st -e mpv --no-audio-display --audio-channels=stereo $fx ;;
- video/*) bsdsetsid mpv --fullscreen --really-quiet --audio-channels=stereo $fx >/dev/null 2>&1 ;;
+ audio/*) setsid alacritty -e mpv --no-audio-display --audio-channels=stereo $fx ;;
+ video/*) setsid mpv --fullscreen --really-quiet --audio-channels=stereo $fx >/dev/null 2>&1 ;;
*opendocument*) odt2txt $f | $PAGER ;;
- application/pdf|application/vnd*|application/epub*) bsdsetsid zathura $fx >/dev/null 2>&1 ;;
+ application/pdf|application/vnd*|application/epub*) setsid zathura $fx >/dev/null 2>&1 ;;
application/pgp-encrypted) $EDITOR $fx ;;
- *) for f in $fx; do bsdsetsid xdg-open $f >/dev/null 2>&1; done;;
+ *) for f in $fx; do setsid xdg-open $f >/dev/null 2>&1; done;;
esac
}}