From a07cd6a9b322e750c27b647cf3b62c43066811b9 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 16 Apr 2009 13:21:17 -0500 Subject: [PATCH] [ Steven Danna ] * bin/battery: hide percentage when battery is in charged state -- Dustin Kirkland Thu, 16 Apr 2009 13:20:46 -0500 --- bin/battery | 4 +++- debian/changelog | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/battery b/bin/battery index 9aa812ed..d72e24c9 100755 --- a/bin/battery +++ b/bin/battery @@ -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 diff --git a/debian/changelog b/debian/changelog index 7776ad8b..9acf5fbf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 ] * debian/control: fix typo in screen-profiles-extras description - -- Dustin Kirkland Thu, 16 Apr 2009 13:03:19 -0500 + [ Steven Danna ] + * bin/battery: hide percentage when battery is in charged state + + -- Dustin Kirkland Thu, 16 Apr 2009 13:20:46 -0500 screen-profiles (1.44-0ubuntu1) jaunty; urgency=low