From 2cb4741222dbc92557cf34473c3ba787d8b52cef Mon Sep 17 00:00:00 2001 From: yutent Date: Sun, 7 Jan 2024 13:34:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fetch | 79 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 35 deletions(-) diff --git a/src/fetch b/src/fetch index 62339ed..5f96ba3 100755 --- a/src/fetch +++ b/src/fetch @@ -86,6 +86,10 @@ draw() { printf "$out" } +free() { + printf "0" +} + # 清屏 clear @@ -109,53 +113,58 @@ get_shell ram=$(free | awk '/Mem:/ {print int($3/$2 * 100.0)}') -# vertical padding -printf "%b" "$PADR" -printf "\n" - PADXX=$((PADX - 3)) for ((i = 0; i < PADXX; ++i)); do PADCC="$PADCC " done -# Ascii art arms + +block_1=" ▓▓ " +block_2=" ▒▒ " +block_3=" ░░ " + + +logo_1="${_cre}${block_1}${block_1}${block_1}${block_1}${block_1}${block_1}${_cnc}" +logo_2="${_cbl}${block_1}${_cma}${block_1}${block_1}${block_1}${block_1}${_cgr}${block_1}${_cnc}" +logo_3="${_cbl}${block_1}${_cre}${block_1}${_cbk}${block_3}${block_3}${_ccy}${block_1}${_cgr}${block_1}${_cnc}" +logo_4="${_cbl}${block_1}${_cre}${block_1}${_cbk}${block_3}${block_3}${_ccy}${block_1}${_cgr}${block_1}${_cnc}" +logo_5="${_cbl}${block_1}${_cwh}${block_1}${block_1}${block_1}${_ccy}${block_1}${_cgr}${block_1}${_cnc}" +logo_6="${_cye}${block_1}${block_1}${block_1}${block_1}${block_1}${_cgr}${block_1}${_cnc}" + +deb_1=" _ _ _ " +deb_2=" __| | ___| |__ (_) __ _ _ ___" +deb_3=" / _\` |/ _ \ '_ \| |/ _\` | '_ \ " +deb_4=" | (_| | __/ |_) | | (_| | | | |" +deb_5=" \__,_|\___|_.__/|_|\__,_|_| |_|" + cat <