mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* 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:
parent
957607cbe8
commit
8e3698a7a5
2 changed files with 8 additions and 12 deletions
14
bin/battery
14
bin/battery
|
@ -59,18 +59,12 @@ for bat in $BATS; do
|
|||
rem=$(search "$statefile" "remaining capacity: *\(.*\) m[AW]h")
|
||||
|
||||
percent=$( echo "$rem" "$full" | awk '{printf "%.0f", 100*$1/$2}')
|
||||
if [ "$percent" -lt 17 ]; then
|
||||
per_color="{= rw}"
|
||||
elif [ "$percent" -lt 33 ]; then
|
||||
per_color="{= Rw}"
|
||||
elif [ "$percent" -lt 50 ]; then
|
||||
per_color="{= Yk}"
|
||||
if [ "$percent" -lt 33 ]; then
|
||||
per_color="{= Rk}"
|
||||
elif [ "$percent" -lt 67 ]; then
|
||||
per_color="{= yk}"
|
||||
elif [ "$percent" -lt 83 ]; then
|
||||
per_color="{= Gw}"
|
||||
per_color="{= Yk}"
|
||||
else
|
||||
per_color="{= gw}"
|
||||
per_color="{= Gk}"
|
||||
fi
|
||||
percent="$percent%"
|
||||
|
||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -16,7 +16,9 @@ byobu (2.4) unreleased; urgency=low
|
|||
instead, LP: #376080
|
||||
* bin/network-down,network-up,updates-available: use /var/run/screen
|
||||
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, debian/install, motd+shell, profiles/byoburc: launch screen
|
||||
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 <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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue