This commit is contained in:
committer@tuxwarrior
2026-02-27 18:56:42 -05:00
parent 7adb327933
commit 9c564be381
5 changed files with 18 additions and 6 deletions

View File

@@ -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"

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
exec kitten icat --clear

View 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"

View File

@@ -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

View File

@@ -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"