mirror of
https://github.com/danbulant/nekofetch
synced 2026-06-21 23:52:17 +00:00
Take a second argument as ascii height (use 75 by default)
This commit is contained in:
parent
d3aa525839
commit
82ce6a4c92
1 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue