Commit Graph

558 Commits

Author SHA1 Message Date
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
Michael Stapelberg
fad9c8237c Bugfix: check that format_not_mounted is not NULL before using it
This issue was introduced with commit 75a83574.

fixes #92
2016-01-12 09:50:44 +01:00
Michael Stapelberg
6179531177 Merge pull request #94 from rpls/master
Forgotten wakeup call from USR1 handler
2016-01-11 01:04:18 -08:00
Richard Petri
8d86198d3c Forgotten wakeup call from USR1 handler
Fixes #93
2016-01-11 09:58:51 +01:00
Michael Stapelberg
dc26801cd3 release v2.10 2016-01-01 19:50:24 +01:00
Michael Stapelberg
528445abc5 Merge pull request #88 from auscompgeek/swaybar
format detection: recognise swaybar
2015-12-27 11:17:07 +01:00
David
b54623a56d format detection: recognise swaybar 2015-12-27 15:59:32 +11:00
Michael Stapelberg
45ad5304f7 Merge pull request #86 from remijouannet/master
update README.md with libnl-genl-3-dev
2015-12-23 11:21:34 +01:00
Rémi Jouannet
57269885c0 update README.md with libnl-genl-3-dev 2015-12-23 11:13:54 +01:00
Michael Stapelberg
395d02518c Merge pull request #72 from ixjlyons/pango-setting
Implement a pango option
2015-12-05 20:00:27 +01:00