- 12 Feb, 2020 1 commit
-
-
Bruce Weirdan authored
On a system with multiple batteries (like thinkpads) report percentage and time remaining only for the active battery (the one being discharged). Ideally we should report all batteries, but acpi only shows time remaining for the active battery. Also callers of these functions expect a single return value. This is still better than reporting 596% remaining (like it did on my laptop). For the reference, the output of acpi command with multiple batteries looks like this: Battery 0: Unknown, 5% Battery 1: Discharging, 86%, 03:14:04 remaining
-
- 11 Feb, 2020 3 commits
-
-
Marc Cornellà authored
- Fix code style - Fix local definitions - Don't declare unnecessary variables - Use `command` before grep
-
Marc Cornellà authored
-
Marc Cornellà authored
Co-authored-by: Michael Wolman <michael.s.wolman@gmail.com>
-
- 09 Oct, 2019 1 commit
-
-
927589452 authored
-
- 23 Feb, 2017 1 commit
-
-
guyzmo authored
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
-
- 10 Oct, 2016 1 commit
-
-
Hong authored
-
- 15 Sep, 2016 1 commit
-
-
Reed Riley authored
* Fix battery plugin when acpi writes to stderr * Make stderr redirection in battery plugin more idiomatic
-
- 23 Jul, 2014 1 commit
-
-
Christian Höltje authored
The $OSTYPE variable is set at ZSH compile time and can be safely used to determine the OS of the system. e.g. darwin (os x)
-
- 18 Mar, 2014 1 commit
-
-
Reed Riley authored
-
- 02 Mar, 2014 1 commit
-
-
Thiago Perrotta authored
-
- 17 Feb, 2014 1 commit
-
-
Chris Wiggins authored
Instantly after removing the charger, I have found that the "AvgTimeToEmpty" value can swing to rediculous values. Apple's current claim is that the max battery life is 12 hours, so any value larger than this is considered a "time is being calculated" value.
-
- 18 Jan, 2014 1 commit
-
-
Brice Dutheil authored
It is especially useful for themes, this function is a port of the code written by Steve Losh and made available on [this blog entry](http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/#my-right-prompt-battery-capacity)
-
- 05 Nov, 2013 1 commit
-
-
James Seward authored
Define empty functions instead of none at all if we can't figure out the platform.
-
- 29 Apr, 2013 1 commit
-
-
Ron Shapiro authored
-
- 21 Apr, 2013 1 commit
-
-
Ron Shapiro authored
Separate the battery_pct_remaining data into it's own function so that it can be obtained even if the battery is connected.
-
- 02 Mar, 2013 1 commit
-
-
Sean Jones authored
linux battery level now refreshes after every command
-
- 02 Dec, 2012 2 commits
-
-
Sean Jones authored
-
Sean Jones authored
-
- 20 Oct, 2011 1 commit
-
-
Peter Hoeg authored
-