Commit ca3ab8e4 authored by Dylan's avatar Dylan

Underlining now works for all the info

parent caf507e8
...@@ -22,6 +22,19 @@ prin "Subtitle: Text goes here" ...@@ -22,6 +22,19 @@ prin "Subtitle: Text goes here"
prin "Subtitle" "Text goes here" prin "Subtitle" "Text goes here"
``` ```
**Underline**<br \>
- Underlining is no longer hardcoded to title length meaning you can now<br \>
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**<br \> **Desktop Environment**<br \>
- [ Linux ] Fallback to using `xprop` if `$XDG_CURRENT_DESKTOP` is empty. - [ Linux ] Fallback to using `xprop` if `$XDG_CURRENT_DESKTOP` is empty.
- Use `$de` instead of `$XDG_CURRENT_DESKTOP` for wallpaper and theme detection. - Use `$de` instead of `$XDG_CURRENT_DESKTOP` for wallpaper and theme detection.
......
...@@ -229,7 +229,7 @@ bold="on" ...@@ -229,7 +229,7 @@ bold="on"
# Enable/Disable Underline # Enable/Disable Underline
# --underline on/off # --underline on/off
underline="on" underline_enabled="on"
# Underline character # Underline character
# --underline_char char # --underline_char char
......
...@@ -253,7 +253,7 @@ bold="on" ...@@ -253,7 +253,7 @@ bold="on"
# Enable/Disable Underline # Enable/Disable Underline
# --underline on/off # --underline on/off
underline="on" underline_enabled="on"
# Underline character # Underline character
# --underline_char char # --underline_char char
...@@ -2266,7 +2266,7 @@ stdout () { ...@@ -2266,7 +2266,7 @@ stdout () {
# Underline {{{ # Underline {{{
getunderline () { getunderline () {
case "$underline" in case "$underline_enabled" in
"on") "on")
underline=$(printf %"$length"s) underline=$(printf %"$length"s)
underline=${underline// /$underline_char} underline=${underline// /$underline_char}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment