From ca3ab8e47cbc9d254f24a45bbb9053fe62b4b2d0 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 2 Apr 2016 12:52:21 +1100 Subject: [PATCH] Underlining now works for all the info --- 1.7.md | 13 +++++++++++++ config/config | 2 +- neofetch | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/1.7.md b/1.7.md index 4081a558..d576f856 100644 --- a/1.7.md +++ b/1.7.md @@ -22,6 +22,19 @@ prin "Subtitle: Text goes here" prin "Subtitle" "Text goes here" ``` +**Underline**
+- Underlining is no longer hardcoded to title length meaning you can now
+underline any part of the output and the length will match. +- `$underline` was renamed to `$underline_enabled`. + +```sh +# OLD Variable +underline="on" + +# NEW Variable +underline_enabled="on" +``` + **Desktop Environment**
- [ Linux ] Fallback to using `xprop` if `$XDG_CURRENT_DESKTOP` is empty. - Use `$de` instead of `$XDG_CURRENT_DESKTOP` for wallpaper and theme detection. diff --git a/config/config b/config/config index e79ff051..8eb6012d 100644 --- a/config/config +++ b/config/config @@ -229,7 +229,7 @@ bold="on" # Enable/Disable Underline # --underline on/off -underline="on" +underline_enabled="on" # Underline character # --underline_char char diff --git a/neofetch b/neofetch index b461176a..f61e73fc 100755 --- a/neofetch +++ b/neofetch @@ -253,7 +253,7 @@ bold="on" # Enable/Disable Underline # --underline on/off -underline="on" +underline_enabled="on" # Underline character # --underline_char char @@ -2266,7 +2266,7 @@ stdout () { # Underline {{{ getunderline () { - case "$underline" in + case "$underline_enabled" in "on") underline=$(printf %"$length"s) underline=${underline// /$underline_char}