[ 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 else
per_color="{= gk}" per_color="{= gk}"
fi fi
percent="$percent%"
state=$(search "$statefile" "charging state: *\(.*\)") state=$(search "$statefile" "charging state: *\(.*\)")
@ -87,11 +88,12 @@ for bat in $BATS; do
;; ;;
charged) charged)
sign="=" sign="="
percent=
;; ;;
*) *)
sign="$state" sign="$state"
;; ;;
esac 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 done

8
debian/changelog vendored
View file

@ -1,7 +1,8 @@
screen-profiles (1.45) unreleased; urgency=low screen-profiles (1.45) unreleased; urgency=low
[ Dustin Kirkland ] [ 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 * bin/uptime: don't print seconds, since we don't update often enough
* screen-profiles-status: use home bin scripts, if available first, * screen-profiles-status: use home bin scripts, if available first,
then fallback to system-wide, allows for local overrides; comment 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> ] [ Jon Bernard <bernardj@gmail.com> ]
* debian/control: fix typo in screen-profiles-extras description * 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 screen-profiles (1.44-0ubuntu1) jaunty; urgency=low