From c462c12e913341e32aea0fb64a1008dab3c7d606 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 28 Jan 2024 16:25:35 -0600 Subject: [PATCH] retire rune script --- utils/rune.sh | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100755 utils/rune.sh diff --git a/utils/rune.sh b/utils/rune.sh deleted file mode 100755 index 5470952..0000000 --- a/utils/rune.sh +++ /dev/null @@ -1,34 +0,0 @@ -#! /usr/bin/env nix-shell -#! nix-shell -i bash -p ascii-image-converter - -set -e -declare -A IMG_SRC -IMG_SRC=( - [jeran]=https://upload.wikimedia.org/wikipedia/commons/0/01/Runic_letter_jeran.png - [othalan]=https://upload.wikimedia.org/wikipedia/commons/1/16/Runic_letter_othalan.png - [algiz]=https://upload.wikimedia.org/wikipedia/commons/1/14/Runic_letter_algiz.png - [mannaz]=https://upload.wikimedia.org/wikipedia/commons/0/0c/Runic_letter_mannaz.png - [kaunan]=https://upload.wikimedia.org/wikipedia/commons/a/a3/Runic_letter_kauna.png -) - -if [[ $# -eq 0 ]]; then - echo please provide rune name - echo options: - for i in "${!IMG_SRC[@]}"; do - echo $i - done - exit 1 -fi - -rune=$1 -color=${36:-$2} - -# tmp this? -FILENAME="Runic_letter_${rune}.png" - -[[ -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 15 -b)" \ - >"${rune}.txt"