From 82ce6a4c925ca40f13d9184258143b12eb10ab9a Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 26 Dec 2020 16:51:33 -0600 Subject: [PATCH] Take a second argument as ascii height (use 75 by default) --- nekofetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nekofetch b/nekofetch index 3b6c1ee..ccf3da1 100755 --- a/nekofetch +++ b/nekofetch @@ -20,10 +20,13 @@ case "$1" in ;; esac +height=${2:-75} +echo "Using height $height" + url=$(curl -fsSL "$imgurl" | jq -r ".url") curl -fsSLo "$tmpfile.jpg" "$url" -jp2a --height=50 "$tmpfile.jpg" > "$tmpfile" +jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile" neofetch --source "$tmpfile" rm "$tmpfile" "$tmpfile.jpg"