Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-08-03 | Remove emptytimebuf from print_battery_info. | Tommie Gannert | |
This changes the behavior for NetBSD: previously this time was not shown while charging. On Linux it was treated as "full time". This change makes all OSes behave the same. OpenBSD and FreeBSD did not support emptytime previously. | |||
2016-08-03 | Remove remainingbuf from print_battery_info. | Tommie Gannert | |
2016-08-01 | Remove percentagebuf from print_battery_info. | Tommie Gannert | |
2016-08-01 | Remove statusbuf from print_battery_info. | Tommie Gannert | |
2016-03-21 | Added status_unk to battery_info | eoin | |
2016-01-25 | This removes the 'remaining' time when the battery is full, since the ↵ | Clayton Craft | |
remaining time is always 00:00:00. When the battery is discharging, the remaining time will show up again if the user has set their format correctly. | |||
2015-10-08 | Properly detect the battery charging status under FreeBSD. | John Baldwin | |
The hw.acpi.battery.state sysctl returns a bitmask of flags as defined in <dev/acpica/acpiio.h>. Use constants from this header to examine the state and check for the charging flag to determine if the battery is charging. | |||
2015-10-04 | Added support for lemonbar | Brendan Van Hook | |
2015-05-20 | Clamp the percentage at 100% when last_full_capacity is enabled. | Michael Stapelberg | |
2015-05-05 | Changed battery info output to HH:MM for consistency accross all platforms | Nicholas Helke | |
2015-03-16 | clang-format-3.5 -i **/*.[ch], update modeline | Michael Stapelberg | |
From here on, we’ll use clang-format to automatically format the source. This has worked well in i3, so we are introducing it for i3status. | |||
2014-12-22 | Avoid use of uninitialized variable in print_battery_info | Alexander Monakov | |
The boolean flag 'watt_as_unit' may be used without being initialized if the configured battery path does not contain expected statistics (for example if it is misconfigured and points to AC adapter info or simply an unrelated file). Even though it does not cause ill effects, it causes a warning (true positive) when running i3status under Valgrind. Initialize the variable to make code well-defined. | |||
2014-10-07 | Created three individual Strings for each battery status (charging, ↵ | Cyril Andreatta | |
dicharching, full) Replaced hard coded status strings (CHR, BAT, FULL) in print_battery_info.c with user defined strings. The new strings are 'status_chr', 'status_bat' and 'status_full' and can be set in i3status.conf. e.g. status_chr = "⚡ CHR" If any of the new status strings is omitted the standard strings (CHR, BAT, FULL) are used. | |||
2014-08-25 | Fix battery indicator on systems without POWER_SUPPLY_VOLTAGE_NOW. | Klemen Košir | |
In my case, the voltage variable would stay initialized as -1, which caused the calculation of battery charge percentage to be incorrect (I would get the message that there is no battery present or even -0% charge). I have no idea how this would affect other systems, since I don't have a chance to test this. | |||
2014-05-31 | Use the absolute values for (dis)charging rates | Michael Stapelberg | |
Apparently some notebooks report a negative current, whereas most don’t. fixes #1249 | |||
2014-04-30 | Implement battery functionality for NetBSD users | Alexander Vasarab | |
This patch takes a similar approach as the NetBSD CPU temperature code in that it uses proplib(3) to walk dictionaries supplied by envsys(4). In addition to providing the basic functionality, it: * Provides all existing format specifiers (%emptytime %consumption %status %percentage %remaining) * Respects all existing config options (hide_seconds, low_threshold, integer_battery_capacity, last_full_capacity) * Projects "time until full" when battery status is CS_CHARGING | |||
2014-03-12 | Unify use of string comparisons | Mats | |
* strncmp(s1, s2, strlen(s2)) → BEGINS_WITH(s1, s2) * strncmp(s1, s2, strlen(s1)) → strcmp(s1, s2) * Prefer case-insensitive comparison for options | |||
2014-03-12 | For the %percentage display of batteries, drop the leading '0' for values < 10. | Jasper Lievisse Adriaanse | |
2014-02-08 | Add hide_seconds option | Iakov Davydov | |
fixes: #1134 | |||
2013-05-04 | fix #1017: i3status uses generic battery instance | Jonas Cleve | |
2013-03-19 | Enable colored output for battery on FreeBSD | Baptiste Daroussin | |
2013-03-09 | Added format_down option for battery if no battery is available. | Christoph Göttschkes | |
2013-02-23 | battery: initialize colorful_output to false | Michael Stapelberg | |
2013-02-14 | Added option to show battery capacity without decimals | Julien Lequertier | |
2012-11-15 | DragonFlyBSD support added | Scott Tincman | |
2012-10-16 | bugfix: colorize output even without discharge rate (thanks f8l) | Simon Elsbrock | |
On some systems, the discharge rate may be missing, although the battery is still working. This leads to an edge case on Linux systems in which the output may not be colorized although a threshold was defined. This commit fixes the behavior by colorizing output if threshold_type is set to "percentage". Since we cannot calculate remaining time without discharge rate, output is still uncolorized in case of threshold_type set to "time". | |||
2012-10-10 | Various fixes for the OpenBSD section of the battery backend. | Jasper Lievisse Adriaanse | |
- fix the battery status printing in %status. - fix remaining time when we're charging. - use colors to indicate battery status. - small cleanups. | |||
2012-09-05 | print_battery.c: do END_COLOR only if START_COLOR was used | Simon Elsbrock | |
2012-08-31 | Eat unnecessary space from the battery format str. | Piotr Domagalski | |
If the battery is not discharging it may be not possible to give information on remaining time or consumption. The resulting strings (%remaining, %consumption, %emptytime) are empty then. But because they are in the format string, the output string contains unnecessary spaces in this case. This commit makes i3status strip these spaces. | |||
2012-08-28 | add additional battery threshold type "percentage" | Simon Elsbrock | |
The battery threshold can now be configured as type "time" or "percentage", but defaults to "time" to prevent unexpected behavior. Also, low_threshold was set to a more reasonable default of 30. | |||
2012-08-13 | use correct units for battery calculation | Philipp Schaefer | |
2012-07-12 | Bugfix: Properly skip "consumption", not "consumptionbuf" (Thanks mloskot) | Michael Stapelberg | |
Fixes #752 | |||
2012-07-11 | small style fix in src/print_battery_info.c (move comment) | Michael Stapelberg | |
2012-07-11 | Calculate the consumption if POWER_SUPPLY_POWER_NOW does not exist in uevent | Marcel Hellwig | |
2012-07-09 | Added consumption to battery info | Marcel Hellwig | |
2012-07-09 | Added condition, for red color, when battery-time is low, namely battery is ↵ | Marcel Hellwig | |
discharging | |||
2012-06-11 | Moved translation of wireless status code to text from multiple places into ↵ | Mateusz Loskot | |
single BATT_STATUS_NAME macro. It simplifies customisation of the hard-wired status text. | |||
2012-05-25 | colorize battery output if remaining time below threshold | Simon Elsbrock | |
2012-05-15 | battery info: output errors in JSON in every case | Michael Stapelberg | |
This hopefully fixes http://bugs.i3wm.org/707 | |||
2012-04-30 | Implement displaying battery status on OpenBSD. | Jasper Lievisse Adriaanse | |
2012-04-08 | add yajl compat code | Michael Stapelberg | |
2012-03-25 | Properly output JSON with libyajl | Michael Stapelberg | |
2012-02-16 | Implement the i3bar JSON protocol | Michael Stapelberg | |
This hardcodes all the JSON parts. Strings are not properly escaped currently. The best/easiest way to fix this is by actually using libyajl. | |||
2011-11-26 | battery: implement "path" option for batteries with non-standard paths | Michael Stapelberg | |
2010-11-03 | battery: use POWER_NOW if CURRENT_NOW is not available | Michael Stapelberg | |
CURRENT_NOW was deprecated for some battery types in recent linux kernels (2.6.36) | |||
2009-12-20 | Remove trailing whitespace | Michael Stapelberg | |
2009-12-20 | Implemented showing the time when battery is empty | André-Patrick Bubel | |
2009-10-16 | battery: split up %remaining into %percentage and %remaining (Thanks shatter) | Michael Stapelberg | |
2009-10-16 | Actually use the format string for the battery (Thanks shatter) | Michael Stapelberg | |
2009-10-16 | Implement option to use the last full capacity instead of the design capacity | Michael Stapelberg | |