mirror of
https://github.com/danbulant/nekofetch
synced 2026-09-20 14:54:03 +00:00
Add kitty image backend support (detects kitty)
This commit is contained in:
parent
26613ace6d
commit
1ef8ac1e54
1 changed files with 6 additions and 2 deletions
|
|
@ -23,7 +23,11 @@ echo "Using height $height"
|
||||||
url=$(curl -fsSL "$imgurl" | jq -r ".url")
|
url=$(curl -fsSL "$imgurl" | jq -r ".url")
|
||||||
|
|
||||||
curl -fsSLo "$tmpfile.jpg" "$url"
|
curl -fsSLo "$tmpfile.jpg" "$url"
|
||||||
jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile"
|
if [ "$TERM" = "xterm-kitty" ]; then
|
||||||
neofetch --source "$tmpfile"
|
neofetch --kitty "$tmpfile.jpg"
|
||||||
|
else
|
||||||
|
jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile"
|
||||||
|
neofetch --source "$tmpfile"
|
||||||
|
fi
|
||||||
|
|
||||||
rm "$tmpfile" "$tmpfile.jpg"
|
rm "$tmpfile" "$tmpfile.jpg"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue