mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/lib/byobu/battery: LP: #1090831
- some batteries use "CHARGE" while others use "ENERGY"
This commit is contained in:
parent
960d8744ac
commit
e61b7c9629
2 changed files with 9 additions and 2 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -19,6 +19,10 @@ byobu (5.23) unreleased; urgency=low
|
||||||
- point to the new byobu.co website rather than the launchpad landing
|
- point to the new byobu.co website rather than the launchpad landing
|
||||||
page
|
page
|
||||||
|
|
||||||
|
[ Dustin Kirkland and Philip Muškovac ]
|
||||||
|
* usr/lib/byobu/battery: LP: #1090831
|
||||||
|
- some batteries use "CHARGE" while others use "ENERGY"
|
||||||
|
|
||||||
[ Antonio Lorusso ]
|
[ Antonio Lorusso ]
|
||||||
* usr/bin/byobu-status: LP: #1018538, #1073145
|
* usr/bin/byobu-status: LP: #1018538, #1073145
|
||||||
- fix select/copy/paste in iTerm2 and KDE
|
- fix select/copy/paste in iTerm2 and KDE
|
||||||
|
|
|
@ -38,8 +38,11 @@ __battery() {
|
||||||
if [ -r "$bat/uevent" ]; then
|
if [ -r "$bat/uevent" ]; then
|
||||||
. "$bat/uevent"
|
. "$bat/uevent"
|
||||||
present="$POWER_SUPPLY_PRESENT"
|
present="$POWER_SUPPLY_PRESENT"
|
||||||
full="$POWER_SUPPLY_CHARGE_FULL"
|
# Some use "CHARGE", others use "ENERGY"
|
||||||
rem="$POWER_SUPPLY_CHARGE_NOW"
|
[ -n "$POWER_SUPPLY_CHARGE_FULL" ] && full="$POWER_SUPPLY_CHARGE_FULL"
|
||||||
|
[ -n "$POWER_SUPPLY_ENERGY_FULL" ] && full="$POWER_SUPPLY_ENERGY_FULL"
|
||||||
|
[ -n "$POWER_SUPPLY_CHARGE_NOW" ] && rem="$POWER_SUPPLY_CHARGE_NOW"
|
||||||
|
[ -n "$POWER_SUPPLY_ENERGY_NOW" ] && rem="$POWER_SUPPLY_ENERGY_NOW"
|
||||||
state="$POWER_SUPPLY_STATUS"
|
state="$POWER_SUPPLY_STATUS"
|
||||||
[ "$present" = "1" ] && [ -n "$full" ] && [ -n "$rem" ] && [ -n "$state" ] && break
|
[ "$present" = "1" ] && [ -n "$full" ] && [ -n "$rem" ] && [ -n "$state" ] && break
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue