hulkk
c2cd5c8687
fix time to charge display on mac, closes #28 ( #68 )
...
* fix time to charge display on mac, closes #28
* add charging colour to battery_status_fg
* fix incorrect colours when discharging
* change charging colour default to green
* add text to show charged when applicable instead of 0:00
2018-08-03 10:03:23 +02:00
Johannes Wikner
8d5adf92fd
Use DisplayDevice if available ( #67 )
...
For laptops with multiple batteries, DisplayDevice should be
available, otherwise stick to the old behaviour.
See https://upower.freedesktop.org/docs/UPower.html#id-1.2.3.8.5
2018-07-25 21:36:53 +02:00
Martin Beentjes
db0698ea86
Update README.md
2018-06-12 15:27:53 +02:00
Igor de Alcantara Barroso
24f088fe5b
Add dependencies to the readme ( #66 )
2018-06-12 15:23:10 +02:00
Aaron Zeng
09be78c35e
Substitute all occurrences of variables ( #63 ) ( #64 )
...
This commit addresses #63 by making sure all occurrences of each
variables in the status line are substituted.
2017-10-24 08:59:56 +02:00
Michael Foley
b4cf61da23
Remove deprecated icon setting in README ( #62 )
...
`batt_discharging_icon` was removed in 215de6d
2017-10-10 09:32:07 +02:00
Thomas Gordon Lowrey IV
8da22116eb
termux initial support ( #61 )
2017-10-01 18:12:26 +02:00
Cédric Michaux
267d960601
Allow to put colors in discharging icons ( #60 )
2017-09-29 08:43:27 +02:00
Dima
215de6dcd2
Use battery percentage icons ( #59 )
...
* Add dynamic battery level icons
* Update README to use correct battery icon variables
2017-09-23 23:23:12 +02:00
hanfried
b630ec8707
Assume no battery percentage as ok, assume it might be a desktop ( #58 )
2017-08-28 14:10:44 +02:00
Philipp Schmitt
51499f1cc7
Fix multiple batteries on linux ( #57 )
2017-08-22 11:40:34 +02:00
Johan Bleuzen
7810c8d7ec
Fix: Don't process empty batteries variable ( #56 )
2017-07-13 10:12:49 +02:00
Justin Campbell
d64c7fecc8
Fix missing argument to awk ( #53 )
...
Fixes time remaining when short=true
2017-07-03 16:54:57 +02:00
Justin Campbell
3d7cfed467
Add @batt_remain_short variable ( #52 )
...
* Remove format string count
* Add variable @batt_remain_short
Hides output if battery is charging or charged, and shortens the discharging output to ~H:MM.
2017-06-26 16:54:27 +02:00
Camille TJHOA
8fa3b627b6
Fix typo ( #51 )
2017-05-08 10:46:59 +02:00
David Vass
9a4e6ef8e4
Show time to charge battery on Mac OS ( #46 )
...
* Show time to charge battery on Mac OS
* Rename variable to
2017-04-20 22:59:10 +02:00
Martin Beentjes
49ff2993be
Update README.md
...
Added Aleksandar Djurdjic to the list of contributors.
2017-01-30 21:14:48 +01:00
Martin Beentjes
06688f8a64
Update README.md
...
Added the foreground color option
2017-01-30 21:12:11 +01:00
Aleksandar Djurdjic
c7034799bc
Adapted script files to also print colored fg sequence ( #47 )
2017-01-30 21:11:00 +01:00
Martin Beentjes
f121a2368c
Update README.md
2017-01-28 12:32:47 +01:00
Martin Beentjes
0a2d6d02e4
Update README.md
...
Restructured the README page. The example pictures will be resized to a constant size.
2017-01-28 12:03:50 +01:00
Martin Beentjes
a3a955e782
Update README.md
...
Added a list of the contributors to the README.md
2017-01-02 15:31:09 +01:00
Tom Levens
629902d532
Fix simplified interpolation in bash < 4.0 ( #39 )
...
Bash versions < 4.0 do not support associative arrays and MacOS Sierra
still ships with Bash 3.2. This splits the interpolation text and
command into two lists. While this is not as nice, it is supported by
any version of bash.
2016-10-21 11:59:39 +02:00
Tom Levens
af7b4be994
Fixed graph when no battery available ( #38 )
2016-10-21 11:59:32 +02:00
Tom Levens
af907c2ceb
Added graph formatting option, simplify interpolation ( #37 )
...
* Added prefix/suffix scripts and graph using Spark
* Reformatted indents, updated README.md
* Updated variable names & docs
* Change to bash C-style for loop
* Fix spaces to tabs
* Fixed spaces to tabs in battery_graph.sh
* Added missing ""
2016-10-20 00:12:03 +02:00
Martin Beentjes
1df74d095d
Update CHANGELOG.md
2016-10-05 11:29:55 +02:00
Joseph
fe54f2eb66
Chromebook Support for battery stat ( #22 )
...
* chromebook check by /sys/class/chromeos/cros_ecs
By checking the existence of the file `/sys/class/chromeos/cros_ecs` (Chrome OS Embedded Controller), one can determine if the machine is a Chromebook. Every Chromebook using the armv7 and x86 architecture will have this file.
2016-10-05 11:29:04 +02:00
Martin Beentjes
926bfd51fd
Update CHANGELOG.md
2016-10-02 17:13:11 +02:00
Evan N-D
e70f252bda
Fix multi-battery output with upower ( #36 )
...
Given multiple batteries in a machine, we will combine the energy and
energy-full values from each battery, then divide the total energy by
the total energy-full, and multiple by 100 to get a percentage. We use
awk to avoid introducing new dependencies, and to also handle the
floating point arithmetic and eventual truncation. This code will always
round your current percentage down.
2016-10-02 17:12:37 +02:00
Martin Beentjes
77760e09af
Update README.md
2016-10-01 16:37:28 +02:00
Martin Beentjes
1f7686e0ae
Update CHANGELOG.md
2016-10-01 16:14:38 +02:00
Ryan Frantz
ce8d85440e
Adds support for changing bg color based on battery percentage. ( #29 )
...
* Adds support for changing bg color based on battery percentage.
- If #{battery_status_bg} is used, the background of this plugin's status bar will be:
- 'green' for 100% charged
- 'yellow' for 99% to 51% charge
- orange ('colour208') for 50% to 16% charge
- 'red' for 15% to 0% charge
* Adds support for background colors set in user's tmux config.
- The background colors can be configured via 'batt_color_full_charge', 'batt_color_high_charge', 'batt_color_medium_charge', and 'batt_color_low_charge'.
- Sane defaults are provided as well.
2016-10-01 16:12:14 +02:00
Martin Beentjes
ae8deefe57
Update README.md
2016-09-28 22:41:23 +02:00
Martin Beentjes
d2e7f7bc28
Bump version in CHANGELOG.md
2016-09-24 23:58:16 +02:00
Martin Beentjes
beb7940d73
Update CHANGELOG.md
2016-09-24 22:17:05 +02:00
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
Adam Biggs
8ff4bec3d7
Don't modify line endings of screenshot images
2015-12-26 23:39:17 +01:00
Bruno Sutic
41c90a2ac1
Add '.gitattributes' to force proper EOL
2015-10-08 16:38:27 +02:00
Bruno Sutic
811b77ddad
Update plugin installation instructions
2015-08-10 20:40:14 +02:00
Bruno Sutic
7def624f2d
Fix status-right, status-left whitespace issue
...
Fixes #11
2015-05-23 13:37:32 +02:00
Caleb
e9efe36bd1
Adding support for acpi battery status
2015-05-09 22:30:30 +02:00
Bruno Sutic
407d1646fc
Update changelog and readme
2015-03-14 18:33:02 +01: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
Bruno Sutic
93074a2b7d
v1.1.0
2015-03-14 17:40:20 +01:00
Bruno Sutic
fbb3575315
Update README and CHANGELOG
2015-03-14 17:39:55 +01:00
Bruno Sutic
7002d871c8
Merge pull request #6 from asethwright/master
...
Add battery remaining time interpolation
2015-03-14 17:29:08 +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