From b9505b84bcd8f056d7b7998f3d719dc72023eb8d Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 25 Jul 2023 11:07:57 -0500 Subject: [PATCH] update rune --- hosts/algiz/motd.nix | 27 ++++++++++++++++----------- utils/{generating-rune.sh => rune.sh} | 9 ++++----- 2 files changed, 20 insertions(+), 16 deletions(-) rename utils/{generating-rune.sh => rune.sh} (78%) diff --git a/hosts/algiz/motd.nix b/hosts/algiz/motd.nix index accae4f..de5f075 100644 --- a/hosts/algiz/motd.nix +++ b/hosts/algiz/motd.nix @@ -1,16 +1,21 @@ { ... }: { users.motd = '' -  - ⠀⠀⢀⡀⠀⠀⢀⡀⠀⠀⢀⡀⠀⠀ - ⠀⠀⠙⢿⣄⠀⢸⡇⠀⣠⡿⠋⠀⠀ - ⠀⠀⠀⠀⠙⢷⣼⣧⡾⠋⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⢻⡟⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀ - ⠀⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀ algiz + +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⢠⣾⣦⡀⠀⠀⠀⣶⣶⠀⠀⠀⢀⣴⣷⡄⠀⠀⠀ +⠀⠀⠀⠀⠙⢿⣷⣄⠀⠀⣿⣿⠀⠀⣠⣾⡿⠋⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠙⢿⣷⣄⣿⣿⣠⣾⡿⠋⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ''; } diff --git a/utils/generating-rune.sh b/utils/rune.sh similarity index 78% rename from utils/generating-rune.sh rename to utils/rune.sh index 7eefa80..582cef7 100755 --- a/utils/generating-rune.sh +++ b/utils/rune.sh @@ -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"