mirror of
https://github.com/danbulant/nekofetch
synced 2026-07-05 19:10:46 +00:00
Mark imagemagick as optional dependency (allows kitty backend)
This commit is contained in:
parent
380389c254
commit
122bfa73f7
3 changed files with 3 additions and 1 deletions
1
Makefile
1
Makefile
|
|
@ -20,6 +20,7 @@ install:
|
||||||
mkdir -p $(PREFIX)/bin
|
mkdir -p $(PREFIX)/bin
|
||||||
install -m 0755 nekofetch $(PREFIX)/bin/nekofetch
|
install -m 0755 nekofetch $(PREFIX)/bin/nekofetch
|
||||||
@echo "You may need to install jq, jp2a, and neofetch"
|
@echo "You may need to install jq, jp2a, and neofetch"
|
||||||
|
@echo "imagemagick is also required to use the kitty image backend"
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(PREFIX)/bin/nekofetch
|
rm -f $(PREFIX)/bin/nekofetch
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,6 @@ Package: PACKAGE
|
||||||
Architecture: ARCH
|
Architecture: ARCH
|
||||||
Version: VERSION
|
Version: VERSION
|
||||||
Depends: curl, jq, jp2a, neofetch
|
Depends: curl, jq, jp2a, neofetch
|
||||||
|
Recommends: imagemagick
|
||||||
Description: neofetch but with nekos
|
Description: neofetch but with nekos
|
||||||
Maintainer: bbaovanc <bbaovanc@bbaovanc.com>
|
Maintainer: bbaovanc <bbaovanc@bbaovanc.com>
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ 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"
|
||||||
if [ "$TERM" = "xterm-kitty" ]; then
|
if [ "$TERM" = "xterm-kitty" ] && command -v convert > /dev/null 2>&1; then
|
||||||
neofetch --kitty "$tmpfile.jpg"
|
neofetch --kitty "$tmpfile.jpg"
|
||||||
else
|
else
|
||||||
jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile"
|
jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue