From 9c564be3817860c25b44d9db9fa601c5a4d65814 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Fri, 27 Feb 2026 18:56:42 -0500 Subject: [PATCH] u --- dots/bin/imgPreviewer.sh | 4 ++-- dots/lf/lf_kitty_clean.sh | 3 +++ dots/lf/lf_kitty_preview.sh | 5 +++++ dots/lf/lfrc | 9 +++++++-- scripts/99_deploy.sh | 3 +-- 5 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 dots/lf/lf_kitty_clean.sh create mode 100644 dots/lf/lf_kitty_preview.sh diff --git a/dots/bin/imgPreviewer.sh b/dots/bin/imgPreviewer.sh index eed1ce4..2c5ead7 100755 --- a/dots/bin/imgPreviewer.sh +++ b/dots/bin/imgPreviewer.sh @@ -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" diff --git a/dots/lf/lf_kitty_clean.sh b/dots/lf/lf_kitty_clean.sh new file mode 100644 index 0000000..4cc9e94 --- /dev/null +++ b/dots/lf/lf_kitty_clean.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +exec kitten icat --clear diff --git a/dots/lf/lf_kitty_preview.sh b/dots/lf/lf_kitty_preview.sh new file mode 100644 index 0000000..9c0c654 --- /dev/null +++ b/dots/lf/lf_kitty_preview.sh @@ -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" diff --git a/dots/lf/lfrc b/dots/lf/lfrc index 30380cd..7218e0c 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -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 diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index 3fb36d0..e7b67cb 100755 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -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"