u
This commit is contained in:
@@ -5,8 +5,8 @@ w="$2" h="$3" x="$4" y="$5"
|
||||
|
||||
case "$(file -Lb --mime-type "$file")" in
|
||||
image/*)
|
||||
kitten icat --stdin no --transfer-mode memory --place "${w}x${h}@${x}x${y}" "$file" /dev/tty
|
||||
# kitten icat --stdin no --transfer-mode memory "$file" /dev/tty
|
||||
# kitten icat --stdin no --transfer-mode memory --place "${w}x${h}@${x}x${y}" "$file" /dev/tty
|
||||
kitten icat --stdin no --transfer-mode memory "$file" /dev/tty
|
||||
;;
|
||||
application/pdf)
|
||||
pdftoppm -f 1 -singlefile "$file" "/tmp/lfoutput"
|
||||
|
||||
3
dots/lf/lf_kitty_clean.sh
Normal file
3
dots/lf/lf_kitty_clean.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
exec kitten icat --clear
|
||||
5
dots/lf/lf_kitty_preview.sh
Normal file
5
dots/lf/lf_kitty_preview.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
[[ "$(file -Lb --mime-type "$1")" =~ ^image ]] || exit 1
|
||||
exec /path/to/kitty-0.26.5/bin/kitty +kitten icat --silent --transfer-mode file --place "${2}x${3}@${4}x${5}" "$1"
|
||||
@@ -28,9 +28,14 @@ set cursorpreviewfmt "\033[7;2m"
|
||||
|
||||
# ctpv
|
||||
# https://github.com/NikitaIvanovV/ctpv
|
||||
set sixel true
|
||||
#set sixel true
|
||||
set preview true
|
||||
set previewer imgPreviewer.sh
|
||||
|
||||
set cleaner ~/.config/lf/lf_kitty_clean.sh
|
||||
set previewer ~/.config/lf/lf_kitty_preview.sh
|
||||
|
||||
|
||||
#set previewer imgPreviewer.sh
|
||||
|
||||
#set previewer ctpv
|
||||
#set cleaner ctpvclear
|
||||
|
||||
@@ -403,10 +403,9 @@ if [ ${operation} == "dots" ] ; then
|
||||
deploy_file "${dots_trg}/keepassxc/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
# lf
|
||||
file_name=lfrc
|
||||
file_path=/home/${system_user}/.config/lf
|
||||
create_dir ${file_path}
|
||||
deploy_file "${dots_trg}/lf/${file_name}" "${file_path}/${file_name}"
|
||||
deploy_file "${dots_trg}/lf/*" "${file_path}/"
|
||||
|
||||
# pcmanfm
|
||||
# bookmarks found in "dots/gtk/.gtk-bookmarks"
|
||||
|
||||
Reference in New Issue
Block a user