Add some configuration

Added config for:
- Bat
- Lf
This commit is contained in:
Alexander Navarro 2023-05-06 14:00:22 -04:00
parent dbd63f64a3
commit 4accde5ee0
11 changed files with 4611 additions and 0 deletions

18
config/lf/preview.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
# Five arguments are passed to the file:
# (1) current file name
# (2) width
# (3) height
# (4) horizontal position
# (5) vertical position of preview pane
case "$1" in
jpg | jpeg | png) vimiv "$1" ;;
*.tar*) tar tf "$1" ;;
*.zip) unzip -l "$1" ;;
*.rar) unrar l "$1" ;;
*.7z) 7z l "$1" ;;
*.pdf) pdftotext "$1" - ;;
*) bat --force-colorization --line-range ":$3" --pager never --terminal-width "$2" "$1" ;;
esac