diff --git a/1.1.md b/1.1.md index e9059818..b6bc0d81 100644 --- a/1.1.md +++ b/1.1.md @@ -71,6 +71,7 @@ the distro ascii art and the automatic config creation. ### Info +- You can now display info without a subtitle. eg. `info memory` - Added `--disable` which allows you to stop an info line from appearing at launch.
```sh diff --git a/config/config b/config/config index 7ea5e023..5049afca 100644 --- a/config/config +++ b/config/config @@ -196,6 +196,10 @@ line_wrap="on" # --bold on/off bold="on" +# Enable/Disable Underline +# --underline on/off +underline="on" + # Underline character # --underline_char char underline_char="-" diff --git a/fetch b/fetch index a816a3bc..7d7adbdb 100755 --- a/fetch +++ b/fetch @@ -216,6 +216,10 @@ line_wrap="on" # --bold on/off bold="on" +# Enable/Disable Underline +# --underline on/off +underline="on" + # Underline character # --underline_char char underline_char="-" @@ -1258,8 +1262,8 @@ getbattery () { battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining /value)" battery=${battery/EstimatedChargeRemaining'='} battery=${battery//[[:space:]]/ } - battery=${battery// } - battery+="${battery}%" + battery=${battery// } + battery+="%" ;; esac } @@ -1805,10 +1809,6 @@ info () { string="${underline_color}${output}" ;; - linebreak | cols) - string="" - ;; - *) string="${bold}${subtitle_color}${subtitle}${clear}" string+="${colon_color}: ${info_color}${output}" @@ -1894,8 +1894,13 @@ stdout () { # Underline {{{ getunderline () { - underline=$(printf %"$length"s) - underline=${underline// /$underline_char} + case "$underline" in + "on") + underline=$(printf %"$length"s) + underline=${underline// /$underline_char} + ;; + "off") underline="" ;; + esac } # }}} @@ -2154,6 +2159,7 @@ while [ "$1" ]; do --info_color) info_color=$2 ;; # Text Formatting + --underline) underline="$2" ;; --underline_char) underline_char="$2" ;; --line_wrap) line_wrap="$2" ;; --bold) bold="$2" ;;