* usr/lib/byobu/battery:

- battery color when black-on-red is hard to read; change to
    white on red.
This commit is contained in:
Dustin Kirkland 2016-08-05 08:38:45 -05:00
commit 066c1faa30
2 changed files with 5 additions and 3 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (5.111) unreleased; urgency=medium
* UNRELEASED
* usr/lib/byobu/battery:
- battery color when black-on-red is hard to read; change to
white on red.
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 29 Jul 2016 12:29:07 -0500

View file

@ -103,8 +103,8 @@ __battery() {
if [ $rem -ge 0 ] && [ $full -gt 0 ]; then
percent=$(((100*$rem)/$full))
if [ "$percent" -lt 33 ]; then
color="R k"
bcolor="b R k"
color="R w"
bcolor="b R w"
elif [ "$percent" -lt 67 ]; then
color="Y k"
bcolor="b Y k"