mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Images add 'catimg' backend
This commit is contained in:
7
neofetch
7
neofetch
@@ -2357,6 +2357,7 @@ make_thumbnail() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
display_image() {
|
display_image() {
|
||||||
|
image_program="catimg"
|
||||||
case "$image_program" in
|
case "$image_program" in
|
||||||
"w3m")
|
"w3m")
|
||||||
# Add a tiny delay to fix issues with images not
|
# Add a tiny delay to fix issues with images not
|
||||||
@@ -2373,6 +2374,12 @@ display_image() {
|
|||||||
"tycat")
|
"tycat")
|
||||||
tycat "$image" || to_off "Images: tycat failed to display the image."
|
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
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user