migrate to stow
This commit is contained in:
14
config/.config/lf/preview.sh
Executable file
14
config/.config/lf/preview.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#! /bin/bash
|
||||
|
||||
file=$1
|
||||
w=$2
|
||||
h=$3
|
||||
x=$4
|
||||
y=$5
|
||||
|
||||
if [[ "$(file -Lb --mime-type "$file")" =~ ^image ]]; then
|
||||
kitty +icat --silent --transfer-mode file --place "${w}x${h}@${x}x${y}" "$file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pistol "$file"
|
||||
Reference in New Issue
Block a user