* bin/battery: color the entire battery the same way, only use 3 tones,

Green/Yellow/Red (6 was too confusing), always use black text on
    capital G/Y/R background


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-16 21:07:46 +01:00
commit 8e3698a7a5
2 changed files with 8 additions and 12 deletions

View file

@ -59,18 +59,12 @@ for bat in $BATS; do
rem=$(search "$statefile" "remaining capacity: *\(.*\) m[AW]h") rem=$(search "$statefile" "remaining capacity: *\(.*\) m[AW]h")
percent=$( echo "$rem" "$full" | awk '{printf "%.0f", 100*$1/$2}') percent=$( echo "$rem" "$full" | awk '{printf "%.0f", 100*$1/$2}')
if [ "$percent" -lt 17 ]; then if [ "$percent" -lt 33 ]; then
per_color="{= rw}" per_color="{= Rk}"
elif [ "$percent" -lt 33 ]; then
per_color="{= Rw}"
elif [ "$percent" -lt 50 ]; then
per_color="{= Yk}"
elif [ "$percent" -lt 67 ]; then elif [ "$percent" -lt 67 ]; then
per_color="{= yk}" per_color="{= Yk}"
elif [ "$percent" -lt 83 ]; then
per_color="{= Gw}"
else else
per_color="{= gw}" per_color="{= Gk}"
fi fi
percent="$percent%" percent="$percent%"

6
debian/changelog vendored
View file

@ -16,7 +16,9 @@ byobu (2.4) unreleased; urgency=low
instead, LP: #376080 instead, LP: #376080
* bin/network-down,network-up,updates-available: use /var/run/screen * bin/network-down,network-up,updates-available: use /var/run/screen
for status cache files, to keep from waking up the disk for status cache files, to keep from waking up the disk
* bin/battery: color the entire battery the same way * bin/battery: color the entire battery the same way, only use 3 tones,
Green/Yellow/Red (6 was too confusing), always use black text on
capital G/Y/R background
* byobu-export: tar files with owner/group as root/root, LP: #371025 * byobu-export: tar files with owner/group as root/root, LP: #371025
* byobu, debian/install, motd+shell, profiles/byoburc: launch screen * byobu, debian/install, motd+shell, profiles/byoburc: launch screen
with a simple config file that includes the chosen profile plus with a simple config file that includes the chosen profile plus
@ -33,7 +35,7 @@ byobu (2.4) unreleased; urgency=low
[ Dustin Kirkland ] [ Dustin Kirkland ]
* - * -
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 16 May 2009 20:35:23 +0100 -- Dustin Kirkland <kirkland@ubuntu.com> Sat, 16 May 2009 21:06:53 +0100
byobu (2.3-0ubuntu1) karmic; urgency=low byobu (2.3-0ubuntu1) karmic; urgency=low