From 944e651b7daed0c6ec5c7f47ee53a43a857819b3 Mon Sep 17 00:00:00 2001 From: desktop Date: Wed, 13 Dec 2023 16:55:21 +0300 Subject: [PATCH] bash : use bold white color for statuses. --- .config/bash/module/archive.sh | 14 +++++++------- .config/bash/module/checksum.sh | 4 ++-- .config/bash/module/name.sh | 24 ++++++++++++------------ .config/bash/module/transcode.sh | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.config/bash/module/archive.sh b/.config/bash/module/archive.sh index 80d5ee6..17bb151 100644 --- a/.config/bash/module/archive.sh +++ b/.config/bash/module/archive.sh @@ -24,7 +24,7 @@ function archive() { # status info. local status="[${count}/${total}] ${target}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" local name=$(parse_camel "${target}") @@ -72,7 +72,7 @@ function archive_fast() { # status info. local status="[${count}/${total}] ${target}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" local name=$(parse_camel "${target}") @@ -119,7 +119,7 @@ function archive_check() { # status info. local status="[${count}/${total}] ${target}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # extract hash from name. local data=($(_archive_parse ${target})) @@ -215,7 +215,7 @@ function unarchive() { # status info. local status="[${count}/${total}] ${target}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # extract hash from name. local data=($(_archive_parse "${target}")) @@ -297,7 +297,7 @@ function archive_name() { # check for the same name. if [[ "${target}" = "${new_name}" ]]; then - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" continue fi @@ -308,7 +308,7 @@ function archive_name() { continue fi - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # rename. mv -- "${target}" "${new_name}" @@ -390,7 +390,7 @@ function archive_rm() { # status info. local status="[${count}/${total}] ${target}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # Delete archive. rm -- "${target}" diff --git a/.config/bash/module/checksum.sh b/.config/bash/module/checksum.sh index a5d0041..d949545 100644 --- a/.config/bash/module/checksum.sh +++ b/.config/bash/module/checksum.sh @@ -24,7 +24,7 @@ function checksum_create() { # Status info. local status="[${count}/${total}] ${target}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # Skip if hash exists. [[ -f "${hashfile}" ]] && continue @@ -71,7 +71,7 @@ function checksum_check() { # Status info. local status="[${count}/${total}] ${target}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # Skip if hash doesn't exist. [[ -f "${hashfile}" ]] || { ((skipped++)); continue; } diff --git a/.config/bash/module/name.sh b/.config/bash/module/name.sh index 14b84fe..15b71c4 100644 --- a/.config/bash/module/name.sh +++ b/.config/bash/module/name.sh @@ -37,7 +37,7 @@ function name() { # status line. local status="[${count}/${total}] ${target} -> ${new_name}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # check if same name. [[ "${target}" = "${new_name}" ]] && continue @@ -102,12 +102,12 @@ function name_hash() { # check if same name. if [[ "${target}" = "${new_name}" ]]; then # echo -e "${color_green}${status}: No change.${color_default}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" continue fi # show change. - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # rename target. mv -- "${target}" "${new_name}" @@ -148,7 +148,7 @@ function name_hash_check() { # status info. local status="[${count}/${total}] ${target}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # extract hashes. local stored="${target%%.*}" @@ -202,7 +202,7 @@ function name_series() { # prepare status. local status="[${count}/${total}] ${target} -> ${new_name}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # Warning on no change. [[ "${target}" = "${new_name}" ]] && continue @@ -311,7 +311,7 @@ function name_ext() { # Prepare status. local status="[${count}/${total}] ${target} -> ${new_name}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # Warning on no change. [[ "${target}" = "${new_name}" ]] && continue @@ -359,7 +359,7 @@ function name_prefix() { # Prepare status. local status="[${count}/${total}] ${target} -> ${new_name}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # Warning on no change. [[ "${target}" = "${new_name}" ]] && continue @@ -407,7 +407,7 @@ function name_postfix() { # Prepare status. local status="[${count}/${total}] ${target} -> ${new_name}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # Warning on no change. [[ "${target}" = "${new_name}" ]] && continue @@ -455,7 +455,7 @@ function name_replace() { # Prepare status. local status="[${count}/${total}] ${target} -> ${new_name}" - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # Warning on no change. [[ "${target}" = "${new_name}" ]] && continue @@ -518,7 +518,7 @@ function name_fix_numbering() { # Check that starts with a digit. if [[ ! "${target}" =~ ^[0-9] ]]; then - echo "${status}" + echo -e "${color_bwhite}${status}${color_default}" continue fi @@ -532,7 +532,7 @@ function name_fix_numbering() { # Skip if the same. if [[ "${target}" = "${new_name}" ]]; then - echo "${status}" + echo -e "${color_bwhite}${status}${color_default}" continue fi @@ -542,7 +542,7 @@ function name_fix_numbering() { return 1 fi - echo "${status}" + echo -e "${color_bwhite}${status}${color_default}" mv -- "${target}" "${new_name}" diff --git a/.config/bash/module/transcode.sh b/.config/bash/module/transcode.sh index e893de0..5c82bf0 100644 --- a/.config/bash/module/transcode.sh +++ b/.config/bash/module/transcode.sh @@ -36,7 +36,7 @@ function transcode() { local status="[${count}/${total}] ${target} -> ${output}" # Show status. - echo -e "${status}" + echo -e "${color_bwhite}${status}${color_default}" # Skip if file exists. [[ -f "${output}" ]] && { ((skipped++)); continue; }