Commit Graph

19 Commits

Author SHA1 Message Date
guyzmo
8611aa8049 Fixing battery prompt formatting issue (cf #5894) (#5895)
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
2017-02-22 23:50:49 -08:00
Hong
a56eac7a71 Use OSTYPE instead of uname whenever possible for better speed. (#5496) 2016-10-10 22:24:30 +02:00
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
2016-09-15 02:01:10 +02:00
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)
2014-07-23 09:18:14 -04:00
Reed Riley
fb2d6eb567 Fixed errors if acpitool isn't installed on linux 2014-03-18 14:13:54 -04:00
Robby Russell
12415a99d2 Merge pull request #2539 from chriswiggins/master
Update battery plugin to show calculating - OSX
2014-03-16 18:49:07 -07:00
Robby Russell
23a43e9fd6 Merge pull request #2574 from thiagowfx/linux-battery
added the linux implementation to the battery plugin
2014-03-16 18:46:50 -07:00
Robby Russell
e8b85f9202 Merge pull request #1776 from ronshapiro/master
plugged_in function
2014-03-13 07:41:18 -07:00
Thiago Perrotta
564a708d6a added the linux implementation to the battery plugin 2014-03-02 14:47:43 -03:00
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.
2014-02-17 13:32:24 +13:00
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)
2014-01-18 13:58:42 +01:00
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.
2013-11-04 21:00:11 -05:00
Ron Shapiro
ae1973de44 plugged_in function 2013-04-29 10:18:32 -04:00
Robby Russell
7787d1da6e Merge pull request #1641 from NeuralSandwich/master
Battery plugin updates
2013-04-23 20:01:40 -07:00
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. 2013-04-20 22:37:36 -04:00
Sean Jones
fdd46d8815 Updated battery plugin. Displays charging time.
linux battery level now refreshes after every command
2013-03-02 11:09:57 +00:00
Sean Jones
5991bf3ac1 Fixed Kernel Detection in battery plugin 2012-12-02 20:39:01 +00:00
Sean Jones
e226fc048a Added support for Mac to battery plugin 2012-12-02 19:36:33 +00:00
Peter Hoeg
6095fe4f71 add: battery plugin 2011-10-20 14:12:13 +08:00