13 lines
250 B
Bash
Executable file
13 lines
250 B
Bash
Executable file
#!/bin/sh
|
|
|
|
case "$(file -Lb --mime-type -- "$1")" in
|
|
image/*)
|
|
chafa -f sixel -s "$2x$3" --animate off --polite on "$1"
|
|
exit 1
|
|
;;
|
|
text/html)
|
|
lynx -width="$4" -display_charset=utf-8 -dump "$1"
|
|
;;
|
|
|
|
esac
|