From 1ef8ac1e5449ec4030b3925a17d9fae17bb6c693 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 11 Jan 2021 08:46:17 -0600 Subject: [PATCH] Add kitty image backend support (detects kitty) --- nekofetch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nekofetch b/nekofetch index 7aafdd3..eb6d9b5 100755 --- a/nekofetch +++ b/nekofetch @@ -23,7 +23,11 @@ echo "Using height $height" url=$(curl -fsSL "$imgurl" | jq -r ".url") curl -fsSLo "$tmpfile.jpg" "$url" -jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile" -neofetch --source "$tmpfile" +if [ "$TERM" = "xterm-kitty" ]; then + neofetch --kitty "$tmpfile.jpg" +else + jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile" + neofetch --source "$tmpfile" +fi rm "$tmpfile" "$tmpfile.jpg"