John Oerter
3a8b93727f
battery: add README ( #7309 )
8 years ago
guyzmo
8611aa8049
Fixing battery prompt formatting issue (cf #5894 ) ( #5895 )
...
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
9 years ago
Hong
a56eac7a71
Use OSTYPE instead of uname whenever possible for better speed. ( #5496 )
10 years ago
Reed Riley
59c66dbfc2
Fix battery plugin when acpi writes to stderr ( #5413 )
...
* Fix battery plugin when acpi writes to stderr
* Make stderr redirection in battery plugin more idiomatic
10 years ago
Christian Höltje
63bae2aba9
Use $OSTYPE instead of uname to speed things up
...
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)
12 years ago
Reed Riley
fb2d6eb567
Fixed errors if acpitool isn't installed on linux
12 years ago
Thiago Perrotta
564a708d6a
added the linux implementation to the battery plugin
12 years ago
Chris Wiggins
fdd864bd5b
Update battery plugin to show calculating - OSX
...
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.
12 years ago
Brice Dutheil
cc8b09366b
Adds a method that print a battery gauge
...
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 )
12 years ago
James Seward
8cfc7d6677
Prevent errors in prompts if no info available.
...
Define empty functions instead of none at all if we can't figure out the
platform.
13 years ago
Ron Shapiro
ae1973de44
plugged_in function
13 years ago
Ron Shapiro
bc385531b0
Separate the battery_pct_remaining data into it's own function so that it can be obtained even if the battery is connected.
13 years ago
Sean Jones
fdd46d8815
Updated battery plugin. Displays charging time.
...
linux battery level now refreshes after every command
13 years ago
Sean Jones
5991bf3ac1
Fixed Kernel Detection in battery plugin
14 years ago
Sean Jones
e226fc048a
Added support for Mac to battery plugin
14 years ago
Peter Hoeg
6095fe4f71
add: battery plugin
15 years ago