2021-11-06 23:28:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Compare select terminal image viewers
|
|
|
|
# Args: <height> [images]...
|
|
|
|
runti() {
|
|
|
|
which "$1" >/dev/null &&
|
|
|
|
highlight "$*" && "$@"
|
|
|
|
}
|
2021-12-02 22:30:23 +00:00
|
|
|
cols="$(expr $(tput cols) / $1 / 3 \| 1)"
|
|
|
|
runti timg --rotate=exif --title --grid=${cols} -g $(tput cols)x$(expr $1 \* $cols + 4) "${@:2}"
|
2021-11-06 23:28:57 +00:00
|
|
|
runti viu --name -h $1 "${@:2}"
|
2021-12-02 22:30:23 +00:00
|
|
|
runti tiv -h $1 -c $(expr $cols + 1) "${@:2}"
|