update rune

This commit is contained in:
Daylin Morgan 2023-07-25 11:07:57 -05:00
parent 20a6ad3be1
commit b9505b84bc
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 20 additions and 16 deletions

View file

@ -1,16 +1,21 @@
{ ... }: {
users.motd = ''

 algiz


'';
}

View file

@ -19,15 +19,14 @@ if [[ $# -eq 0 ]]; then
fi
rune=$1
echo $2
color=${36:-$2}
# tmp this?
FILENAME="Runic_letter_${rune}.png"
wget -O $FILENAME "${IMG_SRC[$rune]}"
printf "\033[1;%dm\n%s\033[0m \033[1m%s\033[0m\n\n" \
[[ -f "$FILENAME" ]] || wget -O "$FILENAME" "${IMG_SRC[$rune]}"
printf "\033[1;%dm\n%s\033[0m\n\n" \
"$color" \
"$(ascii-image-converter "$FILENAME" -n -H 10 -b)" \
"$rune" \
"$(ascii-image-converter "$FILENAME" -n -H 15 -b)" \
>"${rune}.txt"