summaryrefslogtreecommitdiff
path: root/src/print_battery_info.c
AgeCommit message (Expand)Author
2020-06-15Add support for batteries outputting Time to empty on linux (#378)Michael Nolan
2020-02-10use format_placeholder for batteryFelix Buehler
2019-11-16Introduce format_percentage for battery (#371)grmat
2019-07-21Merge pull request #355 from jasperla/header_fixIngo Bürk
2019-07-12battery: include sys/sysctl.h on OpenBSDMichael Stapelberg
2019-07-08Fix headers meant for OpenBSD, but snuck in for FreeBSDJasper Lievisse Adriaanse
2019-07-08Extend battery handling on OpenBSD (#351)Jasper Lievisse Adriaanse
2019-01-23Switch to autotools (#316)Michael Stapelberg
2018-09-03Add support for "POWER_SUPPLY_STATUS=Not charging" (fixes #304)David96
2018-07-13able to print percentageFelix Buehler
2018-07-13Merge pull request #256 from oyvinht/masterIngo Bürk
2018-06-20Prevent potential crash if glob() failsOlivier Gayot
2018-06-20Fix potential memory leak on LinuxOlivier Gayot
2018-03-27Read multiple batteries on DragonFly BSD.Øyvin Halfdan Thuv
2018-01-28Treat zero battery capacity as "not available" (#259)johcgt
2017-08-24Be more cautious about handling invalid battery measurements.kousu
2017-08-19Use local timezone for battery %emptytime (#236)Emeric Planet
2017-04-13Add battery capacity parsing (#216)Emeric Planet
2017-02-07Suppress printing :00 seconds of remaining battery lifetime, as apm(4)'sJasper Lievisse Adriaanse
2016-10-23Detect batteries using glob (#163)Stu Zhao
2016-08-28Implement aggregates for batteries.Tommie Gannert
2016-08-22Match trailing equal sign in slurp_battery_info.Tommie Gannert
2016-08-21Added missing ampere to watt conversion for last full capacity. (#158)tnnn
2016-08-14Move time and ratio computations out of slurp_battery_info. (#151)tommie
2016-08-14Move full_design and full_last into struct battery_info.Tommie Gannert
2016-08-14Also capture charge rate in NetBSD.Tommie Gannert
2016-08-14Fix warnings about using a char array index on NetBSD.Tommie Gannert
2016-08-14Simplify string comparisons in slurp_battery_info for NetBSD.Tommie Gannert
2016-08-14Remove warnings about unused variables in slurp_battery_info on OpenBSD.Tommie Gannert
2016-08-03Move OS-specific code to slurp_battery_info.Tommie Gannert
2016-08-03Introduce a struct battery_info to carry information from data retrieval to t...Tommie Gannert
2016-08-03Refactor common seconds_remaining code in print_battery_info.Tommie Gannert
2016-08-03Remove an END_COLOR in print_battery_info for OpenBSD.Tommie Gannert
2016-08-03Move START_COLOR to after OS-specific code.Tommie Gannert
2016-08-03Remove consumptionbuf from print_battery_info.Tommie Gannert
2016-08-03Remove emptytimebuf from print_battery_info.Tommie Gannert
2016-08-03Remove remainingbuf from print_battery_info.Tommie Gannert
2016-08-01Remove percentagebuf from print_battery_info.Tommie Gannert
2016-08-01Remove statusbuf from print_battery_info.Tommie Gannert
2016-03-21Added status_unk to battery_infoeoin
2016-01-25This removes the 'remaining' time when the battery is full, since the remaini...Clayton Craft
2015-10-08Properly detect the battery charging status under FreeBSD.John Baldwin
2015-10-04Added support for lemonbarBrendan Van Hook
2015-05-20Clamp the percentage at 100% when last_full_capacity is enabled.Michael Stapelberg
2015-05-05Changed battery info output to HH:MM for consistency accross all platformsNicholas Helke
2015-03-16clang-format-3.5 -i **/*.[ch], update modelineMichael Stapelberg
2014-12-22Avoid use of uninitialized variable in print_battery_infoAlexander Monakov
2014-10-07Created three individual Strings for each battery status (charging, dicharchi...Cyril Andreatta
2014-08-25Fix battery indicator on systems without POWER_SUPPLY_VOLTAGE_NOW.Klemen Košir
2014-05-31Use the absolute values for (dis)charging ratesMichael Stapelberg