lf: update preview and clean scripts

This commit is contained in:
2023-04-30 21:24:14 +03:00
parent a72f0c83a0
commit 65365c95da
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
#! /bin/bash #! /bin/bash
kitty +icat --clear --silent --transfer-mode file kitty +kitten icat --clear --stdin no --silent --transfer-mode file </dev/null >/dev/tty

View File

@@ -7,7 +7,7 @@ x=$4
y=$5 y=$5
if [[ "$(file -Lb --mime-type "$file")" =~ ^image ]]; then if [[ "$(file -Lb --mime-type "$file")" =~ ^image ]]; then
kitty +icat --silent --transfer-mode file --place "${w}x${h}@${x}x${y}" "$file" kitty +kitten icat --silent --stdin no --transfer-mode file --place "${w}x${h}@${x}x${y}" "$file" </dev/null >/dev/tty
exit 1 exit 1
fi fi