Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-11-10 | fix(battery): use `pmset` for battery percentage in macOS (#9364) | aimuz | |
Returns the battery charge consistent with the system battery manager | |||
2020-04-05 | battery: revert battery charging symbol 1-character-width hack | Marc Cornellà | |
Fixes #8804 | |||
2020-03-30 | battery: remove printf usage where possible | Marc Cornellà | |
Spares us of the need to quote % symbols | |||
2020-03-30 | battery: fix Full battery bug on Linux; force 1-char-width on charging symbol | Marc Cornellà | |
2020-02-25 | battery: remove redundant grep calls in battery_pct function | Marc Cornellà | |
2020-02-25 | battery: fix floating point output in macOS | Marc Cornellà | |
Fixes #8676 | |||
2020-02-12 | Remove invalid batteries (#8275) | GregoireW | |
2020-02-12 | Report only active battery (#4726) | Bruce Weirdan | |
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 | |||
2020-02-11 | Various syntax fixes and function naming equivalence | Marc Cornellà | |
- Fix code style - Fix local definitions - Don't declare unnecessary variables - Use `command` before grep | |||
2020-02-11 | Clean up Linux battery commands and syntax | Marc Cornellà | |
2020-02-11 | Fix calculation for battery percentage (#4774) | Marc Cornellà | |
Co-authored-by: Michael Wolman <michael.s.wolman@gmail.com> | |||
2019-10-09 | battery: add support for sysctl in FreeBSD (#8155) | 927589452 | |
2017-02-22 | Fixing battery prompt formatting issue (cf #5894) (#5895) | guyzmo | |
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net> | |||
2016-10-10 | Use OSTYPE instead of uname whenever possible for better speed. (#5496) | Hong | |
2016-09-15 | Fix battery plugin when acpi writes to stderr (#5413) | Reed Riley | |
* Fix battery plugin when acpi writes to stderr * Make stderr redirection in battery plugin more idiomatic | |||
2014-07-23 | Use $OSTYPE instead of uname to speed things up | Christian Höltje | |
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-03-18 | Fixed errors if acpitool isn't installed on linux | Reed Riley | |
2014-03-16 | Merge pull request #2539 from chriswiggins/master | Robby Russell | |
Update battery plugin to show calculating - OSX | |||
2014-03-16 | Merge pull request #2574 from thiagowfx/linux-battery | Robby Russell | |
added the linux implementation to the battery plugin | |||
2014-03-13 | Merge pull request #1776 from ronshapiro/master | Robby Russell | |
plugged_in function | |||
2014-03-02 | added the linux implementation to the battery plugin | Thiago Perrotta | |
2014-02-17 | Update battery plugin to show calculating - OSX | Chris Wiggins | |
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-01-18 | Adds a method that print a battery gauge | Brice Dutheil | |
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) | |||
2013-11-04 | Prevent errors in prompts if no info available. | James Seward | |
Define empty functions instead of none at all if we can't figure out the platform. | |||
2013-04-29 | plugged_in function | Ron Shapiro | |
2013-04-23 | Merge pull request #1641 from NeuralSandwich/master | Robby Russell | |
Battery plugin updates | |||
2013-04-20 | Separate the battery_pct_remaining data into it's own function so that it ↵ | Ron Shapiro | |
can be obtained even if the battery is connected. | |||
2013-03-02 | Updated battery plugin. Displays charging time. | Sean Jones | |
linux battery level now refreshes after every command | |||
2012-12-02 | Fixed Kernel Detection in battery plugin | Sean Jones | |
2012-12-02 | Added support for Mac to battery plugin | Sean Jones | |
2011-10-20 | add: battery plugin | Peter Hoeg | |