[ Steven Danna <ssd7@pitt.edu> ]

* bin/battery: hide percentage when battery is in charged state

 -- Dustin Kirkland <kirkland@ubuntu.com>Thu, 16 Apr 2009 13:20:46 -0500
This commit is contained in:
Dustin Kirkland 2009-04-16 13:21:17 -05:00
commit a07cd6a9b3
2 changed files with 9 additions and 3 deletions

View file

@ -75,6 +75,7 @@ for bat in $BATS; do
else
per_color="{= gk}"
fi
percent="$percent%"
state=$(search "$statefile" "charging state: *\(.*\)")
@ -87,11 +88,12 @@ for bat in $BATS; do
;;
charged)
sign="="
percent=
;;
*)
sign="$state"
;;
esac
printf "\005%s%d%%\005{-}\005%s|%s|\005{-} " "$per_color" "$percent" "$cap_color" "$sign"
printf "\005%s%s\005{-}\005%s|%s|\005{-} " "$per_color" "$percent" "$cap_color" "$sign"
done

8
debian/changelog vendored
View file

@ -1,7 +1,8 @@
screen-profiles (1.45) unreleased; urgency=low
[ Dustin Kirkland ]
* bin/cpu-freq: fix for powerpc, fix for arm, always report in GHz
* bin/cpu-freq: fix for powerpc LP: #352286, fix for arm LP: #362157,
always report in GHz, round to nearest hundred
* bin/uptime: don't print seconds, since we don't update often enough
* screen-profiles-status: use home bin scripts, if available first,
then fallback to system-wide, allows for local overrides; comment
@ -15,7 +16,10 @@ screen-profiles (1.45) unreleased; urgency=low
[ Jon Bernard <bernardj@gmail.com> ]
* debian/control: fix typo in screen-profiles-extras description
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 13:03:19 -0500
[ Steven Danna <ssd7@pitt.edu> ]
* bin/battery: hide percentage when battery is in charged state
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 13:20:46 -0500
screen-profiles (1.44-0ubuntu1) jaunty; urgency=low