Images add 'catimg' backend
This commit is contained in:
parent
1444bb10d9
commit
5ade44b9b3
1 changed files with 8 additions and 1 deletions
7
neofetch
7
neofetch
|
@ -2357,6 +2357,7 @@ make_thumbnail() {
|
|||
}
|
||||
|
||||
display_image() {
|
||||
image_program="catimg"
|
||||
case "$image_program" in
|
||||
"w3m")
|
||||
# Add a tiny delay to fix issues with images not
|
||||
|
@ -2373,6 +2374,12 @@ display_image() {
|
|||
"tycat")
|
||||
tycat "$image" || to_off "Images: tycat failed to display the image."
|
||||
;;
|
||||
|
||||
"catimg")
|
||||
catimg -w "$columns" "$image" || to_off "Images: catimg failed to display the image."
|
||||
text_padding="$((columns / 2 + gap))"
|
||||
zws=
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue