diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-18 12:35:16 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-18 12:35:16 +0200 |
commit | 82592e7714b5d479786d8e8f753d6aa1a088816b (patch) | |
tree | c7ab2089b69f8bb55860b8f9b578c9cab4a8819c /.config/lf | |
parent | mostrc (diff) | |
download | dotfiles-bsd-82592e7714b5d479786d8e8f753d6aa1a088816b.tar.gz dotfiles-bsd-82592e7714b5d479786d8e8f753d6aa1a088816b.tar.bz2 dotfiles-bsd-82592e7714b5d479786d8e8f753d6aa1a088816b.tar.xz dotfiles-bsd-82592e7714b5d479786d8e8f753d6aa1a088816b.tar.zst dotfiles-bsd-82592e7714b5d479786d8e8f753d6aa1a088816b.zip |
update
Diffstat (limited to '.config/lf')
-rw-r--r-- | .config/lf/lfrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc index b95e238..1897c4a 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -16,10 +16,10 @@ set previewer '~/.config/lf/scope' 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 | less ;; + 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 ;; text/html) firefox $fx ;; - text/plain) less $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/svg+xml) display -- $f ;; @@ -32,7 +32,7 @@ cmd open ${{ ;; 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 ;; - *opendocument*) odt2txt $f | less ;; + *opendocument*) odt2txt $f | $PAGER ;; application/pdf|application/vnd*|application/epub*) bsdsetsid 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;; |