diff --git a/.config/mytermux/alert/images/finish.png b/.config/mytermux/alert/images/finish.png index 40391e4..96f0ab2 100644 Binary files a/.config/mytermux/alert/images/finish.png and b/.config/mytermux/alert/images/finish.png differ diff --git a/.local/bin/rxfetch b/.local/bin/rxfetch index 748346f..e0cd754 100755 --- a/.local/bin/rxfetch +++ b/.local/bin/rxfetch @@ -108,7 +108,7 @@ main echo -e "\n\n" echo -e " ┏━━━━━━━━━━━━━━━━━━━━━━┓" echo -e " ┃ ${c1}r${c2}x${c7}f${c4}e${c5}t${c6}${c7}c${c1}h${c0} ${c5}${c0} ${c6}${c0} ${c7}${c0} ┃ ${codename}${c5}@${c0}${client_base}" -echo -e " ┠━━━━━━━━━━━━━━━━━━━━━━┫" +echo -e " ┣━━━━━━━━━━━━━━━━━━━━━━┫" echo -e " ┃ ┃ ${c1}phone${c0} ${model}" echo -e " ┃ ${c3}•${c8}_${c3}•${c0} ┃ ${c2}os${c0} ${os}" echo -e " ┃ ${c8}${c0}${c9}oo${c0}${c8}|${c0} ┃ ${c7}ker${c0} ${kernel}" diff --git a/helper/banner.sh b/helper/banner.sh index 9720402..5f12606 100755 --- a/helper/banner.sh +++ b/helper/banner.sh @@ -1,25 +1,25 @@ #!/usr/bin/env bash -VERSION="0.6.1" -BUILD_DATE="19 November 2021" +VERSION="0.6.2" +BUILD_DATE="03 April 2022" AUTHOR="xShin" function banner() { echo -e " - ┌────────────────────────────────────────────────────────────────┐ - │ _______ │ - │ (_______) │ - │ ____ _ _ _ _____ ____ ____ _ _ _ _ │ - │ | \| | | | | ___ |/ ___) \| | | ( \ / ) │ - │ | | | | |_| | | ____| | | | | | |_| |) X ( │ - │ |_|_|_|\__ |_|_____)_| |_|_|_|____/(_/ \_) │ - │ (____/ │ - │ │ - │ 🚀 Version : ${VERSION} │ - │ 📅 Build Date : ${BUILD_DATE} │ - │ ⚙️ Author : ${AUTHOR} │ - │ │ - ╰────────────────────────────────────────────────────────────────╯ + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ + ┃ _______ ┃ + ┃ (_______) ┃ + ┃ ____ _ _ _ _____ ____ ____ _ _ _ _ ┃ + ┃ | \| | | | | ___ |/ ___) \| | | ( \ / ) ┃ + ┃ | | | | |_| | | ____| | | | | | |_| |) X ( ┃ + ┃ |_|_|_|\__ |_|_____)_| |_|_|_|____/(_/ \_) ┃ + ┃ (____/ ┃ + ┃ ┃ + ┃ 🚀 Version : ${VERSION} ┃ + ┃ 📅 Build Date : ${BUILD_DATE} ┃ + ┃ ⚙️ Author : ${AUTHOR} ┃ + ┃ ┃ + ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ " } diff --git a/helper/clone.sh b/helper/clone.sh index 91c3226..5496864 100755 --- a/helper/clone.sh +++ b/helper/clone.sh @@ -46,29 +46,21 @@ function repositories() { echo -e "‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Getting Information Repository" sleep 2s - # echo -e " - # ╭────────────────────────────────────────────────────────────────────╮ - # ┃ Information Repository ┃ - # ╰────────────────────────────────────────────────────────────────────╯ - # ┃ Repository Name ┃ Repository Size ┃ - # ╰────────────────────────────────────────────────────────────────────╯" echo -e " - ╭────────────────────────────────────────────────────────────────────╮ - ┃ Information Repository ┃ - ╰────────────────────────────────────────────────────────────────────╯ + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ + ┃ Information Repository ┃ + ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ ┃ Repository Name Repository Size ┃ - ╰────────────────────────────────────────────────────────────────────╯" + ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" for REPOSITORY_API in "${REPOSITORY_APIS[@]}"; do REPOSITORY_NAME=$(curl https://api.github.com/${REPOSITORY_API} 2> /dev/null | grep full_name | sed -n 1p | awk '{print $2}' | sed "s/,//g" | sed "s/\"//g") - # printf " ┃ ${COLOR_SUCCESS}%-36s${COLOR_BASED} ▎ ${COLOR_WARNING}%8s${COLOR_BASED} ┃\n" $REPOSITORY_NAME `repoSize $REPOSITORY_API` - printf " ┃ ${COLOR_SUCCESS}%-36s${COLOR_BASED} ${COLOR_WARNING}%8s${COLOR_BASED} ┃\n" $REPOSITORY_NAME `repoSize $REPOSITORY_API` - echo -e " ╰────────────────────────────────────────────────────────────────────╯" + printf " ┃ ${COLOR_SUCCESS}%-36s${COLOR_BASED} ${COLOR_WARNING}%8s${COLOR_BASED} ┃\n" $REPOSITORY_NAME `repoSize $REPOSITORY_API` + echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" done - # echo " ╰────────────────────────────────────────────────────────────────────╯" echo -e "" } diff --git a/helper/dotfiles.sh b/helper/dotfiles.sh index d1ed813..e86d221 100755 --- a/helper/dotfiles.sh +++ b/helper/dotfiles.sh @@ -24,30 +24,21 @@ function dotFiles() { echo -e "\n‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Getting Information Dotfiles" sleep 2s - # echo -e " - # ╭───────────────────────────────────────────────╮ - # ┃ Information Dotfiles ┃ - # ╰───────────────────────────────────────────────╯ - # ┃ Folder Name ┃ Folder Size ┃ - # ╰───────────────────────────────────────────────╯" - - echo -e " - ╭───────────────────────────────────────────────╮ + echo -e " + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Information Dotfiles ┃ - ╰───────────────────────────────────────────────╯ + ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ ┃ Folder Name Folder Size ┃ - ╰───────────────────────────────────────────────╯" + ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" for DOTFILE in "${DOTFILES[@]}"; do FOLDER_SIZE=$(du -s -h $DOTFILE | awk '{print $1}') - # printf " ┃ ${COLOR_SUCCESS}%-12s${COLOR_BASED} ▎ ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $DOTFILE $FOLDER_SIZE - printf " ┃ ${COLOR_SUCCESS}%-12s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $DOTFILE $FOLDER_SIZE - echo -e " ╰───────────────────────────────────────────────╯" + printf " ┃ ${COLOR_SUCCESS}%-12s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $DOTFILE $FOLDER_SIZE + echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" done - # echo " ╰───────────────────────────────────────────────╯" echo "" } diff --git a/helper/finish.sh b/helper/finish.sh index c260d9f..dfb6d63 100755 --- a/helper/finish.sh +++ b/helper/finish.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -MYTERMUX_VERSION="0.6.1" +MYTERMUX_VERSION="0.6.2" function alertFinish() { diff --git a/helper/package.sh b/helper/package.sh index 8d1b85b..3108656 100755 --- a/helper/package.sh +++ b/helper/package.sh @@ -16,22 +16,14 @@ function packages() { KB_INSTALLED_SIZE=0 MB_INSTALLED_SIZE=0 - # TOTAL_DOWNLOAD_SIZE=0 - # TOTAL_INSTALLED_SIZE=0 - echo -e "‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Getting Information Packages" - # echo -e " - # ╭─────────────────────────────────────────────────────────────────────────────────────╮ - # ┃ Information Packages ┃ - # ╰─────────────────────────────────────────────────────────────────────────────────────╯ - # ┃ Package Name ┃ Version ┃ Download ┃ Installed ┃ - # ╰─────────────────────────────────────────────────────────────────────────────────────╯" + echo -e " - ╭─────────────────────────────────────────────────────────────────────────────────────╮ + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Information Packages ┃ - ╰─────────────────────────────────────────────────────────────────────────────────────╯ + ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ ┃ Package Name Version Download Installed ┃ - ╰─────────────────────────────────────────────────────────────────────────────────────╯" + ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" for PACKAGE in "${PACKAGES[@]}"; do @@ -44,34 +36,28 @@ function packages() { UNIT_DOWNLOAD_SIZE=$(apt show $PACKAGE 2> /dev/null | grep Download-Size: | awk '{print $3}') UNIT_INSTALLED_SIZE=$(apt show $PACKAGE 2> /dev/null | grep Installed-Size: | awk '{print $3}') - printf " ┃ ${COLOR_SUCCESS}%-13s${COLOR_BASED} ${COLOR_WARNING}%10s${COLOR_BASED} ${COLOR_WARNING}%-4s${COLOR_BASED} %-2s ${COLOR_WARNING}%-4s${COLOR_BASED} %-2s ┃\n" $PACKAGE_NAME $VERSION ${DOWNLOAD_SIZE} "${UNIT_DOWNLOAD_SIZE}" ${INSTALLED_SIZE} "${UNIT_INSTALLED_SIZE}" - echo -e " ╰─────────────────────────────────────────────────────────────────────────────────────╯" - - # echo -e "Unit Download: ${UNIT_DOWNLOAD_SIZE} Unit Installed: ${UNIT_INSTALLED_SIZE}" + printf " ┃ ${COLOR_SUCCESS}%-13s${COLOR_BASED} ${COLOR_WARNING}%10s${COLOR_BASED} ${COLOR_WARNING}%-4s${COLOR_BASED} %-2s ${COLOR_WARNING}%-4s${COLOR_BASED} %-2s ┃\n" $PACKAGE_NAME $VERSION ${DOWNLOAD_SIZE} "${UNIT_DOWNLOAD_SIZE}" ${INSTALLED_SIZE} "${UNIT_INSTALLED_SIZE}" + echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" if [[ "${UNIT_DOWNLOAD_SIZE}" == "kB" && "${UNIT_INSTALLED_SIZE}" == "MB" ]]; then KB_DOWNLOAD_SIZE=$(echo "${KB_DOWNLOAD_SIZE} + ${DOWNLOAD_SIZE} / 1024" | bc -l | xargs -i printf "%'.1f" {}) MB_INSTALLED_SIZE=$(echo "${MB_INSTALLED_SIZE} + ${INSTALLED_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) - # echo -e "\n[ ${COLOR_WARNING}KB Download${COLOR_BASED} ] > ${KB_DOWNLOAD_SIZE} \n[ ${COLOR_CYAN}MB Installed${COLOR_BASED} ] > ${MB_INSTALLED_SIZE}" elif [[ "${UNIT_DOWNLOAD_SIZE}" == "MB" && "${UNIT_INSTALLED_SIZE}" == "kB" ]]; then MB_DOWNLOAD_SIZE=$(echo "${MB_DOWNLOAD_SIZE} + ${DOWNLOAD_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) KB_INSTALLED_SIZE=$(echo "${KB_INSTALLED_SIZE} + ${INSTALLED_SIZE} / 1024" | bc -l | xargs -i printf "%'.1f" {}) - # echo -e "\n[ ${COLOR_WARNING}MB Download${COLOR_BASED} ] > ${MB_DOWNLOAD_SIZE} \n[ ${COLOR_CYAN}KB Installed${COLOR_BASED} ] > ${KB_INSTALLED_SIZE}" elif [[ "${UNIT_DOWNLOAD_SIZE}" == "kB" && "${UNIT_INSTALLED_SIZE}" == "kB" ]]; then KB_DOWNLOAD_SIZE=$(echo "${KB_DOWNLOAD_SIZE} + ${DOWNLOAD_SIZE} / 1024" | bc -l | xargs -i printf "%'.1f" {}) KB_INSTALLED_SIZE=$(echo "${KB_INSTALLED_SIZE} + ${INSTALLED_SIZE} / 1024" | bc -l | xargs -i printf "%'.1f" {}) - # echo -e "\n[ ${COLOR_WARNING}KB Download${COLOR_BASED} ] > ${KB_DOWNLOAD_SIZE} \n[ ${COLOR_CYAN}KB Installed${COLOR_BASED} ] > ${KB_INSTALLED_SIZE}" elif [[ "${UNIT_DOWNLOAD_SIZE}" == "MB" && "${UNIT_INSTALLED_SIZE}" == "MB" ]]; then MB_DOWNLOAD_SIZE=$(echo "${MB_DOWNLOAD_SIZE} + ${DOWNLOAD_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) MB_INSTALLED_SIZE=$(echo "${MB_INSTALLED_SIZE} + ${INSTALLED_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) - # echo -e "\n[ ${COLOR_WARNING}MB Download${COLOR_BASED} ] > ${MB_DOWNLOAD_SIZE} \n[ ${COLOR_CYAN}MB Installed${COLOR_BASED} ] > ${MB_INSTALLED_SIZE}" fi @@ -80,8 +66,8 @@ function packages() { TOTAL_DOWNLOAD_SIZE=$(echo "${KB_DOWNLOAD_SIZE} + ${MB_DOWNLOAD_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) TOTAL_INSTALLED_SIZE=$(echo "${KB_INSTALLED_SIZE} + ${MB_INSTALLED_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) - printf " ┃ [ ${COLOR_WARNING}%5s${COLOR_BASED} ] ─────────────────────────────────> ${COLOR_WARNING}%6s${COLOR_BASED} %-2s ${COLOR_WARNING}%6s${COLOR_BASED} %-2s ┃" "TOTAL" ${TOTAL_DOWNLOAD_SIZE} "MB" ${TOTAL_INSTALLED_SIZE} "MB" - echo -e "\n ╰─────────────────────────────────────────────────────────────────────────────────────╯" + printf " ┃ [ ${COLOR_WARNING}%5s${COLOR_BASED} ] ─────────────────────────────────> ${COLOR_WARNING}%6s${COLOR_BASED} %-2s ${COLOR_WARNING}%6s${COLOR_BASED} %-2s ┃" "TOTAL" ${TOTAL_DOWNLOAD_SIZE} "MB" ${TOTAL_INSTALLED_SIZE} "MB" + echo -e "\n ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" echo "" diff --git a/helper/themes.sh b/helper/themes.sh index b887ba3..b589fa5 100755 --- a/helper/themes.sh +++ b/helper/themes.sh @@ -25,22 +25,20 @@ function zshTheme() { # ┃ File Name ┃ File Size ┃ # ╰─────────────────────────────────────────────────────────╯" echo -e " - ╭─────────────────────────────────────────────────────────╮ + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Information ZSH Theme ┃ - ╰─────────────────────────────────────────────────────────╯ - ┃ File Name File Size ┃ - ╰─────────────────────────────────────────────────────────╯" + ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ + ┃ File Name File Size ┃ + ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" for ZSH_CUSTOM_THEME in "${ZSH_CUSTOM_THEMES[@]}"; do FILE_SIZE=$(du -s -h .oh-my-zsh/custom/themes/$ZSH_CUSTOM_THEME | awk '{print $1}') - # printf " ┃ ${COLOR_SUCCESS}%-24s${COLOR_BASED} ▎ ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $ZSH_CUSTOM_THEME $FILE_SIZE - printf " ┃ ${COLOR_SUCCESS}%-24s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $ZSH_CUSTOM_THEME $FILE_SIZE - echo -e " ╰─────────────────────────────────────────────────────────╯" + printf " ┃ ${COLOR_SUCCESS}%-24s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $ZSH_CUSTOM_THEME $FILE_SIZE + echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" done - # echo " ╰─────────────────────────────────────────────────────────╯" echo "" }