Merge pull request #29 from KiranWells/master

Add configuration support for the color blocks
This commit is contained in:
gk authored and GitHub committed 2021-03-20 17:31:51 +10:00
commit 557200c65d
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'
}