clean up preview script
This commit is contained in:
parent
1370d4ee62
commit
6287059d34
|
@ -9,13 +9,9 @@ f="$(realpath "$1")" w=$2 h=$3 # x=$4 y=$5
|
|||
|
||||
image() {
|
||||
file=${1:-$f}
|
||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||
chafa "$file" -s "$((w - 2))x$h" --polite on
|
||||
else
|
||||
# shellcheck disable=2086
|
||||
chafa -f sixel -s "${w}x${h}" --polite on --animate false "$file"
|
||||
exit 0
|
||||
fi
|
||||
# shellcheck disable=2086
|
||||
chafa -f sixel -s "${w}x${h}" --polite on --animate false "$file"
|
||||
exit 0
|
||||
}
|
||||
|
||||
video() {
|
||||
|
|
Loading…
Reference in New Issue