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) - `accent` (0-7)
- `info` - `info`
- `separator` - `separator`
- `colorblock`
For less simple configuration I recommend editing the script, I tried to keep it simple. 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() { col() {
printf ' ' printf ' '
for i in 1 2 3 4 5 6; do for i in 1 2 3 4 5 6; do
printf '\033[9%sm▅▅' "$i" printf '\033[9%sm%s' "$i" "${colorblock:-▅▅}"
done done
printf '\033[0m\n' printf '\033[0m\n'
} }