diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-03-16 10:20:57 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-03-16 10:20:57 +0100 |
commit | 061dab3212a26a0103d631fb2ba2ea54402400ca (patch) | |
tree | 5c8ea9c30ed5c5163102aeabffc25a7df8900754 /.config | |
parent | Update (diff) | |
download | dotfiles-bsd-061dab3212a26a0103d631fb2ba2ea54402400ca.tar.gz dotfiles-bsd-061dab3212a26a0103d631fb2ba2ea54402400ca.tar.bz2 dotfiles-bsd-061dab3212a26a0103d631fb2ba2ea54402400ca.tar.xz dotfiles-bsd-061dab3212a26a0103d631fb2ba2ea54402400ca.tar.zst dotfiles-bsd-061dab3212a26a0103d631fb2ba2ea54402400ca.zip |
lf update
Diffstat (limited to '.config')
-rw-r--r-- | .config/env | 1 | ||||
-rw-r--r-- | .config/lf/lfrc | 35 |
2 files changed, 19 insertions, 17 deletions
diff --git a/.config/env b/.config/env index c5be5d4..eb01f0b 100644 --- a/.config/env +++ b/.config/env @@ -74,3 +74,4 @@ export MANPAGER="less -R -M +Gg" export MPD_HOST="$HOME"/.local/share/mpd/socket export RUSTFLAGS="-L /usr/local/lib" export WWW_HOME="https://start.duckduckgo.com/" +export BAT_THEME="gruvbox-dark" diff --git a/.config/lf/lfrc b/.config/lf/lfrc index f36b61e..83ed5e9 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -15,23 +15,24 @@ set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml" # cmds/functions cmd open ${{ - case $(file --mime-type "$(readlink -f $f)" -b) in - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;; - image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) bsdsetsid zathura $fx >/dev/null 2>&1 ;; - text/*|application/json|inode/x-empty) $EDITOR $fx;; - image/x-xcf) bsdsetsid gimp $f >/dev/null 2>&1 ;; - image/svg+xml) display -- $f ;; - image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" | - bsdsetsid sxiv -aibo 2>/dev/null | while read -r file; do - [ -z "$file" ] && continue - lf -remote "send select \"$file\"" - lf -remote "send toggle" - done & - ;; - audio/*) bsdsetsid st -e mpv --no-audio-display --audio-channels=stereo $f ;; - video/*) bsdsetsid mpv --fullscreen --really-quiet --audio-channels=stereo $f >/dev/null 2>&1 ;; - application/pdf|application/vnd*|application/epub*) bsdsetsid zathura $fx >/dev/null 2>&1 ;; - application/pgp-encrypted) $EDITOR $fx ;; + case $(file --mime-type "$(readlink -f $f)" -b) in + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;; + image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) bsdsetsid zathura $fx >/dev/null 2>&1 ;; + 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 ;; + image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" | + bsdsetsid sxiv -aibo 2>/dev/null | while read -r file; do + [ -z "$file" ] && continue + lf -remote "send select \"$file\"" + lf -remote "send toggle" + done & + ;; + audio/*) bsdsetsid st -e mpv --no-audio-display --audio-channels=stereo $f ;; + video/*) bsdsetsid mpv --fullscreen --really-quiet --audio-channels=stereo $f >/dev/null 2>&1 ;; + *opendocument*) odt2txt $f | bat --style=plain --tabs 4 --paging=always -f ;; + 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;; esac }} |