From b7153ce65816c551550fe294b04ae9601cb5a494 Mon Sep 17 00:00:00 2001 From: Yorper Date: Mon, 4 Nov 2019 13:58:21 +1100 Subject: [PATCH 1/2] Add Cleanjaro Logo --- neofetch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/neofetch b/neofetch index eca616ed..fd7528be 100755 --- a/neofetch +++ b/neofetch @@ -5852,6 +5852,37 @@ ${c1} ..,:${c3}dOkxl:. EOF ;; + "cleanjaro_small"*) + set_colors 7 7 + read -rd '' ascii_data <<'EOF' +${c1}█████ ██████████ +█████ ██████████ +█████ +█████ +█████ +████████████████ +████████████████ +EOF + ;; + + "Cleanjaro"*) + set_colors 7 7 + read -rd '' ascii_data <<'EOF' +${c1}███████▌ ████████████████ +███████▌ ████████████████ +███████▌ ████████████████ +███████▌ +███████▌ +███████▌ +███████▌ +███████▌ +█████████████████████████ +█████████████████████████ +█████████████████████████ +▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ +EOF + ;; + "ClearOS"*) set_colors 2 read -rd '' ascii_data <<'EOF' From c7136162d950d5fa4baf9d5d7da293f840f28947 Mon Sep 17 00:00:00 2001 From: Zach Pearson Date: Wed, 27 Nov 2019 18:01:57 -0600 Subject: [PATCH 2/2] Add option to arbitrarily position color columns --- neofetch | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 4c464c25..5f437c8f 100755 --- a/neofetch +++ b/neofetch @@ -600,6 +600,19 @@ block_width=3 # Flag: --block_height block_height=1 +# Color Alignment +# +# Default: 'auto' +# Values: 'auto', 'num' +# Flag: --col_offset +# +# Number specifies how far from the left side of the terminal (in spaces) to +# begin printing the columns, in case you want to e.g. center them under your +# text. +# Example: +# col_offset="auto" - Default behavior of neofetch +# col_offset=7 - Leave 7 spaces then print the colors +col_offset="auto" # Progress Bars @@ -3471,7 +3484,10 @@ get_cols() { # Add block height to info height. ((info_height+=block_range[1]>7?block_height+3:block_height+2)) - printf '\n\e[%bC%b\n\n' "$text_padding" "${zws}${cols}" + case $col_offset in + "auto") printf '\n\e[%bC%b\n\n' "$text_padding" "${zws}${cols}" ;; + *) printf '\n\e[%bC%b\n\n' "$col_offset" "${zws}${cols}" ;; + esac fi unset -v blocks blocks2 cols @@ -4455,6 +4471,7 @@ TEXT FORMATTING: COLOR BLOCKS: --color_blocks on/off Enable/Disable the color blocks + --col_offset auto/num Left-padding of color blocks --block_width num Width of color blocks in spaces --block_height num Height of color blocks in lines --block_range num num Range of colors to print as blocks @@ -4652,6 +4669,7 @@ get_args() { "--block_range") block_range=("$2" "$3") ;; "--block_width") block_width="$2" ;; "--block_height") block_height="$2" ;; + "--col_offset") col_offset="$2" ;; # Bars "--bar_char")