From 43c439853ca5ca036b338a7b500cb7b3f61d2c96 Mon Sep 17 00:00:00 2001 From: xynxynxyn Date: Tue, 14 Aug 2018 03:48:53 +0200 Subject: [PATCH] make seperator changeable --- neofetch | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 79a15c30..32707f20 100755 --- a/neofetch +++ b/neofetch @@ -3876,8 +3876,18 @@ prin() { length="${#length}" fi + # Make sure $sep is unset + unset -v sep + + # Check if $seperator is set + if [[ $seperator ]]; then + sep=$seperator + else + sep=":" + fi + # Format the output. - string="${string/:/${reset}${colon_color}:${info_color}}" + string="${string/:/${reset}${colon_color}${sep}${info_color}}" string="${subtitle_color}${bold}${string}" # Print the info. @@ -4498,6 +4508,7 @@ get_args() { "--underline") underline_enabled="$2" ;; "--underline_char") underline_char="$2" ;; "--bold") bold="$2" ;; + "--seperator") seperator="$2" ;; # Color Blocks "--color_blocks") color_blocks="$2" ;;