usr/lib/byobu/battery, usr/share/man/man1/byobu.1: allow for

overriding detected BATTERY, LP: #693560
This commit is contained in:
Dustin Kirkland 2011-01-03 11:37:02 -06:00
commit 26b830e8ae
3 changed files with 4 additions and 2 deletions

2
debian/changelog vendored
View file

@ -12,6 +12,8 @@ byobu (3.20) unreleased; urgency=low
- add an option for -n|--no-logout to byobu-launcher-install, - add an option for -n|--no-logout to byobu-launcher-install,
document changes in new manpages, LP: #604931 document changes in new manpages, LP: #604931
* usr/lib/byobu/cpu_temp: find the temp monitor, LP: #676080 * usr/lib/byobu/cpu_temp: find the temp monitor, LP: #676080
* usr/lib/byobu/battery, usr/share/man/man1/byobu.1: allow for
overriding detected BATTERY, LP: #693560
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 28 Dec 2010 00:05:13 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 28 Dec 2010 00:05:13 -0600

View file

@ -37,7 +37,7 @@ if [ "$1" = "--detail" ]; then
exit 0 exit 0
fi fi
for bat in /proc/acpi/battery/*; do for bat in $BATTERY /proc/acpi/battery/*; do
# make sure that this battery is present # make sure that this battery is present
infofile=$(cat "$bat/info") infofile=$(cat "$bat/info")
present=$(search "$infofile" "present: *\(.*\)") present=$(search "$infofile" "present: *\(.*\)")

View file

@ -20,7 +20,7 @@ Note that DATA=\fI$HOME/.byobu\fP.
\fBarch\fP \- system architecture; displayed on the lower bar toward the left, in the default text color on the default background color \fBarch\fP \- system architecture; displayed on the lower bar toward the left, in the default text color on the default background color
\fBbattery\fP \- battery information; display on the lower bar toward the right; |\-| indicates discharging, |+| indicates charging, |=| indicates fully charged; when charging or discharging, the current battery capacity as a percentage is displayed; the colours green, yellow, and red are used to give further indication of the battery's charge state \fBbattery\fP \- battery information; display on the lower bar toward the right; |\-| indicates discharging, |+| indicates charging, |=| indicates fully charged; when charging or discharging, the current battery capacity as a percentage is displayed; the colours green, yellow, and red are used to give further indication of the battery's charge state; you may override the detected battery by setting BATTERY=/proc/acpi/battery/BAT0 in \fI$DATA/statusrc\fP
\fBcpu_count\fP \- the number of cpu's or cores on the system; displayed in the lower bar toward the right in the default text color on the default background, followed by a trailing 'x' \fBcpu_count\fP \- the number of cpu's or cores on the system; displayed in the lower bar toward the right in the default text color on the default background, followed by a trailing 'x'