mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-20 21:43:19 -07:00
* usr/lib/byobu/battery:
- battery color when black-on-red is hard to read; change to white on red.
This commit is contained in:
parent
7e2fe530dd
commit
066c1faa30
2 changed files with 5 additions and 3 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
||||||
byobu (5.111) unreleased; urgency=medium
|
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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 29 Jul 2016 12:29:07 -0500
|
||||||
|
|
||||||
|
|
|
@ -103,8 +103,8 @@ __battery() {
|
||||||
if [ $rem -ge 0 ] && [ $full -gt 0 ]; then
|
if [ $rem -ge 0 ] && [ $full -gt 0 ]; then
|
||||||
percent=$(((100*$rem)/$full))
|
percent=$(((100*$rem)/$full))
|
||||||
if [ "$percent" -lt 33 ]; then
|
if [ "$percent" -lt 33 ]; then
|
||||||
color="R k"
|
color="R w"
|
||||||
bcolor="b R k"
|
bcolor="b R w"
|
||||||
elif [ "$percent" -lt 67 ]; then
|
elif [ "$percent" -lt 67 ]; then
|
||||||
color="Y k"
|
color="Y k"
|
||||||
bcolor="b Y k"
|
bcolor="b Y k"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue