Commit Graph

717 Commits

Author SHA1 Message Date
Michael Stapelberg
cf53cf0192 Merge pull request #150 from tommie/incremental_multibatt
Move full_design and full_last into struct battery_info
2016-08-14 13:01:35 -07:00
Tommie Gannert
d74bc90bfe Move full_design and full_last into struct battery_info.
This is in preparation for moving the ratio computation code out of
slurp_battery_info to support aggregating multiple batteries.
2016-08-14 20:44:54 +01:00
Tommie Gannert
9970af67e5 Also capture charge rate in NetBSD.
For time estimates when charging.
2016-08-14 20:44:54 +01:00
Michael Stapelberg
6e4ca31aa5 Merge pull request #149 from tommie/incremental_multibatt
Fix some compilation warnings on OpenBSD and NetBSD
2016-08-14 06:29:20 -07:00
Tommie Gannert
eb0b6412af Fix warnings about using a char array index on NetBSD.
The isspace macro is just a table lookup.
2016-08-14 12:37:38 +01:00
Tommie Gannert
a937693cef Simplify string comparisons in slurp_battery_info for NetBSD.
Doing strlen(a) == strlen(b) && strncmp(a, b, N) seems to have no
benefits compared to just strcmp(a, b). The NetBSD cstring properties
come from the kernel, not the user.

The test for units did a prefix match, but that looked like a bug, the
unit is "Watt hour" in my Virtual box.
2016-08-14 12:20:43 +01:00
Tommie Gannert
7728cff370 Make print_disk_info, print_eth_info and print_wireless_info compile on NetBSD without warnings. 2016-08-14 11:52:27 +01:00
Tommie Gannert
185d70ecbb Remove warnings about unused variables in slurp_battery_info on OpenBSD. 2016-08-14 11:52:27 +01:00
Tommie Gannert
4189824ffb Define IW_ESSID_MAX_SIZE for OpenBSD.
Also fixes a signedness warning.
2016-08-14 11:52:27 +01:00
Michael Stapelberg
712c5b0f0b Merge pull request #145 from tommie/incremental_multibatt
Move OS-specific code from print_battery_info to a separate function
2016-08-13 14:01:48 -07:00
eplanet
535fc76fb3 Deleting VERSION and extracting it from I3STATUS_VERSION instead (#146) 2016-08-13 13:46:31 -07:00
Tommie Gannert
77f097dcca Move OS-specific code to slurp_battery_info. 2016-08-03 23:27:04 +01:00
Tommie Gannert
a537d1503a Introduce a struct battery_info to carry information from data retrieval to the output formatter. 2016-08-03 23:27:04 +01:00
Michael Stapelberg
2d16f144f5 Merge pull request #144 from tommie/incremental_multibatt
Refactor color code and computation of seconds_remaining in print_battery_info
2016-08-04 00:21:37 +02:00
Tommie Gannert
0b16860145 Refactor common seconds_remaining code in print_battery_info. 2016-08-03 23:09:16 +01:00
Tommie Gannert
52f0dd6a36 Remove an END_COLOR in print_battery_info for OpenBSD.
This was probably a bug since it makes no sense to have here.
2016-08-03 23:09:15 +01:00
Tommie Gannert
6d3e9991de Move START_COLOR to after OS-specific code.
This uses the more direct tests of whether percentage_remaining and
seconds_remaining are available or not (rather than looking at
present_rate).
2016-08-03 23:09:02 +01:00
Michael Stapelberg
1faa84d2f7 Merge pull request #143 from tommie/incremental_multibatt
Remove emptytimebuf and consumptionbuf from print_battery_info
2016-08-03 23:14:14 +02:00
Tommie Gannert
47ec48b85d Remove consumptionbuf from print_battery_info. 2016-08-03 20:13:10 +01:00
Tommie Gannert
b890d2e416 Remove emptytimebuf from print_battery_info.
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 20:13:10 +01:00
Michael Stapelberg
9ba3ea0900 Merge pull request #142 from tommie/incremental_multibatt
Remove statusbuf, percentagebuf and remainingbuf from print_battery_info
2016-08-03 18:45:45 +02:00
Tommie Gannert
63724e2fa5 Remove remainingbuf from print_battery_info. 2016-08-03 08:24:24 +01:00
eplanet
b93afe8fb9 Fixed typo in README.md (#141) 2016-08-01 22:16:50 +02:00
Tommie Gannert
0390dbf2e0 Remove percentagebuf from print_battery_info. 2016-08-01 00:34:31 +01:00
Tommie Gannert
88a0c6923c Remove statusbuf from print_battery_info. 2016-08-01 00:24:40 +01:00
Michael Stapelberg
8e852fa945 Merge pull request #139 from Gjum/wb-colored-cpu-usage
Add CPU usage color thresholds
2016-07-30 19:23:20 +02:00
Gjum
dbc0f9bd8c change default cpu_usage thresholds to 90 and 95 2016-07-27 20:03:55 +02:00
Bandie Yip Kojote
dd0f6bf4b7 Manpage subsection TzTime: Example config now matches to the context (#134) 2016-06-30 08:52:35 +01:00
eplanet
4a37333cad Added version files for release tarball. Fixes #78 (#132) 2016-06-27 08:49:51 +02:00
eplanet
3a807af855 Default configuration paths ordered the same way as i3. Fixes #129 (#130) 2016-06-15 23:13:40 +02:00
Michael Stapelberg
7c0c82313e travis: use trusty instead of (failing) llvm repo 2016-06-15 21:45:34 +02:00
Alexis Hildebrandt
0a2d4d8a04 Add ifdef to compile wireless_info on Mac (#127) 2016-05-13 09:50:09 +02:00
Watcom
4807be8b5f reconnect to PulseAudio if connection is lost (fixes #124) (#125) 2016-05-08 00:19:30 +02:00
Mark Schreiber
1e8dab273d Add CPU usage color thresholds
CPU usage had previously not supported the color option.  Add support
for a "degraded" state above which the degraded color is used, and a
higher "bad" state above which the "bad" color is used.  One possible
use for these might be indicating whether one or all cores are
saturated.

Unlike the color settings for other, these are set high enough to be
disabled by default.  This is done because i3status determines CPU
usage over only the last display interval, which means that, a user
with a low refresh rate might see frequent, potentially-annoying color
changes.
2016-04-13 09:11:32 -07:00
Michael Stapelberg
c094f47b45 Merge pull request #117 from egroat/master
Added status_unk to battery_info
2016-03-30 08:53:55 +02:00
eoin
d59589bf9e Added status_unk to battery_info 2016-03-21 22:41:22 +00:00
Michael Stapelberg
dbc59d7376 Merge pull request #116 from eplanet/55_path_cputemp
Adding glob check to cpu temperature fixes #55
2016-03-21 12:19:14 -07:00
eplanet
a8aa5d608c Adding glob check to cpu temperature fixes #55 2016-03-20 11:47:56 +01:00
Michael Stapelberg
132c35f6c9 Merge pull request #114 from ixjlyons/fix-man-url
Fixed link to contrib in man page.
2016-03-11 19:10:45 -08:00
Kenneth Lyons
f0ecd7bf53 Fixed link to contrib in man page. 2016-03-11 14:26:54 -08:00
Michael Stapelberg
e073cf4968 Merge pull request #105 from cornerman/issue_104
add separator and separator_block_width as universal module options
2016-02-01 08:53:27 +01:00
johannes karoff
6f4819f7a5 add separator and separator_block_width as universal module options
fixes #104
2016-01-31 19:39:29 +01:00
Michael Stapelberg
85329802b2 Merge pull request #103 from craftyguy/bat_full_remaining
This removes the 'remaining' time when the battery is full, since the…
2016-01-25 00:53:59 -08:00
Clayton Craft
430b053326 This removes the 'remaining' time when the battery is full, since the 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. 2016-01-25 00:38:13 -08:00
Michael Stapelberg
cc55b44f80 Merge pull request #100 from czarkoff/mail-python
check_mail.py: more detailed report on IOError
2016-01-22 00:39:55 -08:00
Dmitrij D. Czarkoff
cc77338ff4 check_mail.py: more detailed report on IOError
When user doesn't have permissions to access some file, he is better served by
exact error message python recieved then by statement "not a mailbox".
2016-01-21 10:36:30 +01:00
Michael Stapelberg
b0cfdeab77 Merge pull request #96 from bebehei/symbols-battery
give more descriptive symbols to battery format
2016-01-12 13:22:37 -08:00
Michael Stapelberg
8918502fcd Merge pull request #95 from Watcom/nanosleep
revert back to using nanosleep
2016-01-12 11:57:04 -08:00
Benedikt Heine
023f588bea give more descriptive symbols to battery format 2016-01-12 15:07:33 +01:00
Watcom Hecht
dd75c260f8 revert back to using nanosleep
Fixes #93
2016-01-12 11:46:42 -02:00