Add configuration support for the color blocks

This commit is contained in:
KiranWells committed 2021-03-18 14:01:34 -05:00
1 parent 7ed24d4d77
commit c83ca55849
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ Supported options are:
- `accent` (0-7)
- `info`
- `separator`
- `colorblock`
For less simple configuration I recommend editing the script, I tried to keep it simple.
+1 -1
View File
@@ -237,7 +237,7 @@ cpu=${cpu% *-Core*}
col() {
printf ' '
for i in 1 2 3 4 5 6; do
printf '\033[9%sm▅▅' "$i"
printf '\033[9%sm%s' "$i" "${colorblock:-▅▅}"
done
printf '\033[0m\n'
}