Commit graph

22 commits

Author SHA1 Message Date
Martin Beentjes 2e99a09d3a Show correct percentage and time for charging/discharging (#35)
This closes #34, closes #25.
2016-09-24 21:48:09 +02:00
Caleb e9efe36bd1
Adding support for acpi battery status 2015-05-09 22:30:30 +02:00
Bruno Sutic 45a05289f9
Move battery_status function to helpers file 2015-03-14 18:30:12 +01:00
Bruno Sutic cfd10a2a6c Merge pull request #7 from JanAhrens/master
Display all batteries that upower knows about
2015-03-14 18:29:13 +01:00
Bruno Sutic 3e05bb7edb
battery_remain interpolation displays only time in format \d\d:\d\d
Closes #8
2015-03-14 18:18:35 +01:00
Bruno Sutic e4ed7fa567
Show #{battery_remain} only if battery discharging
Closes #9
2015-03-14 18:03:43 +01:00
Jan Ahrens 417d20a213 Determine battery icon by examine all batteries
Luckily the alphabetical sort order of all states can also be used to
determine to global system state (attached, charging or fully-charged).
2015-02-21 19:23:38 +01:00
Jan Ahrens 5a91392d2e Display all batteries that upower knows about 2015-02-21 12:33:50 +01:00
Seth Wright fd6feb7576 add battery remaining time interpolation 2015-02-17 13:13:57 -05:00
Bruno Sutic 329c7ac37c
Change the default icon for 'attached' battery state 2015-02-06 00:33:48 +01:00
Mike Foley 63f99d578e Add support for "attached" battery state
Occurs when Mac cable is partially plugged in.

```
Now drawing from 'AC Power'
 -InternalBattery-0     39%; AC attached; not charging
```
2015-02-03 15:44:12 -08:00
Bruno Sutic 1b42812f7e
Change plugin name to tmux-battery 2014-08-31 01:00:10 +02:00
Bruno Sutic 5e8c671b35
DRYing the code 2014-08-31 00:35:08 +02:00
Bruno Sutic b9d50dd9cb
Refactoring functions to a helper file 2014-08-31 00:31:20 +02:00
Bruno Sutic 1f12b61c6a
Bring back icon defaults for OS X 2014-08-31 00:23:41 +02:00
Joey Geralnik e583a1696d Change icons to things that work
For some reason, the default icons are not available in my font.
Change them to things that are available
2014-08-31 00:11:41 +02:00
Joey Geralnik 900a8d760d Add linux support on percentage display
Again use upower to display percentage
2014-08-31 00:11:41 +02:00
Joey Geralnik 100304bfdb Add support for linux with upower
When pmset is not available try using upower which works on linux
2014-08-31 00:11:41 +02:00
Bruno Sutic 0a3fffd026 Switch to tab indentation 2014-06-03 12:45:29 +02:00
Bruno Sutic 67e12a7303 Make a couple variables local 2014-05-23 18:59:20 +02:00
Bruno Sutic c24b330d94 Fix she-bang line 2014-05-23 18:58:30 +02:00
Bruno Sutic 79e702ac96 First commit 2014-05-19 13:35:40 +02:00