Images add 'catimg' backend
This commit is contained in:
parent
1444bb10d9
commit
5ade44b9b3
1 changed files with 8 additions and 1 deletions
9
neofetch
9
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
|
||||
}
|
||||
|
||||
|
@ -2548,7 +2555,7 @@ get_underline() {
|
|||
|
||||
get_line_break() {
|
||||
# Print it directly.
|
||||
printf "%s\n" "${zws} "
|
||||
printf "%s\n" "${zws}"
|
||||
|
||||
# Calculate info height.
|
||||
((++info_height))
|
||||
|
|
Loading…
Reference in a new issue