lf: update preview and clean scripts
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user