]>
git.sur5r.net Git - i3/i3status/log
Øyvin Halfdan Thuv [Wed, 13 Dec 2017 12:46:50 +0000 (13:46 +0100)]
Read multiple batteries on DragonFly BSD.
Using ACPI to read individual battery information instead of just
accumulations from sysctl.
Ingo Bürk [Tue, 12 Dec 2017 17:07:19 +0000 (18:07 +0100)]
Merge pull request #255 from eplanet/update_readme
Get rid of the SLOC comment
eplanet [Mon, 11 Dec 2017 21:50:16 +0000 (22:50 +0100)]
Get rid of the SLOC comment
Emeric Planet [Mon, 11 Dec 2017 11:16:00 +0000 (12:16 +0100)]
Update comment as in #247 (#254)
Emeric Planet [Mon, 11 Dec 2017 10:38:31 +0000 (11:38 +0100)]
Add IPv6 address when IPv4 isn't available (#247)
Ingo Bürk [Sat, 9 Dec 2017 15:17:42 +0000 (16:17 +0100)]
Merge pull request #253 from eplanet/always_reload_tz
Call tzset at each time print
eplanet [Sat, 9 Dec 2017 14:48:18 +0000 (15:48 +0100)]
Call tzset at each time print
Ingo Bürk [Sat, 9 Dec 2017 12:36:27 +0000 (13:36 +0100)]
Merge pull request #252 from GuyOfThePery/patch-1
Fixed minor typos
GuyOfThePery [Sat, 9 Dec 2017 11:24:11 +0000 (13:24 +0200)]
Fixed minor typos
"you can chose" -> "you can choose"
"You can either disable the default separator altogether setting it to the empty string." -> " You can also disable the default separator altogether by setting it to the empty string."
Emeric Planet [Mon, 20 Nov 2017 18:51:48 +0000 (19:51 +0100)]
Add network test cases (#246)
Michael Stapelberg [Fri, 6 Oct 2017 05:53:58 +0000 (22:53 -0700)]
Merge pull request #237 from kousu/215-battery
Be more cautious about handling invalid battery measurements.
Emeric Planet [Tue, 29 Aug 2017 17:01:30 +0000 (19:01 +0200)]
Fix CPU unit tests (#239)
Support any amount of available cores on testing machine.
Michael Stapelberg [Mon, 18 Sep 2017 06:30:48 +0000 (08:30 +0200)]
Makefile: make PKG_CONFIG overridable (patch by Helmut Grohne)
Emeric Planet [Tue, 29 Aug 2017 17:01:30 +0000 (19:01 +0200)]
Fix CPU unit tests (#239)
Support any amount of available cores on testing machine.
kousu [Thu, 24 Aug 2017 21:57:16 +0000 (17:57 -0400)]
Repair test case.
This was introduced in #236. It looks like Travis never ran on that PR?
Anyway it's blocking me submitting this now so I'm fixing it.
kousu [Thu, 24 Aug 2017 08:11:18 +0000 (04:11 -0400)]
Be more cautious about handling invalid battery measurements.
Emeric Planet [Sat, 19 Aug 2017 12:56:30 +0000 (14:56 +0200)]
Use local timezone for battery %emptytime (#236)
Ingo Bürk [Sun, 16 Apr 2017 05:43:30 +0000 (07:43 +0200)]
Merge pull request #219 from flammi/master
Add check for virtual ethernet devices
Emeric Planet [Thu, 13 Apr 2017 19:46:21 +0000 (21:46 +0200)]
Add battery capacity parsing (#216)
The Linux power supply class defines three entries to provide battery status.
One of them wasn't used: POWER_SUPPLY_CAPACITY.
https://www.kernel.org/doc/Documentation/power/power_supply_class.txt
Fabian Franzen [Thu, 13 Apr 2017 10:51:29 +0000 (12:51 +0200)]
Added braces
Added braces to the if-statement as requested.
Fabian Franzen [Wed, 12 Apr 2017 11:11:34 +0000 (13:11 +0200)]
Fix memory leak/Use BEGINS_WITH macro
The orignal proposed code had a memory leak when returning true.
Furthermore I included the handy BEGINS_WITH macro of i3 which makes the
code (IMHO) a lot more readable.
Fabian Franzen [Wed, 12 Apr 2017 01:30:28 +0000 (03:30 +0200)]
Add check for virtual ethernet devices
The _first_ option for ethernet devices now uses the link in sysfs to determine
if it's a real device or just a virtual one (i.e veth** devices created by docker).
eplanet [Sun, 26 Mar 2017 10:54:07 +0000 (12:54 +0200)]
Multiple CPU support for cpu_usage (#209)
This change addresses the issue #199 asking for multiple CPU support. It
takes an arbitrary CPU number and outputs its usage using the same
arithmetics as for CPU aggregation. It currently doesn't support
FreeBSD.
Ingo Bürk [Thu, 16 Mar 2017 13:27:21 +0000 (14:27 +0100)]
Merge pull request #211 from ixjlyons/issue210
disk: don't remove trailing slash if path is a single character
Kenneth Lyons [Fri, 10 Mar 2017 19:24:56 +0000 (11:24 -0800)]
disk: don't remove trailing slash if path is a single character
Ingo Bürk [Wed, 8 Mar 2017 21:26:33 +0000 (22:26 +0100)]
Merge pull request #208 from stapelberg/warning
remove useless checks (we use char, not unsigned char)
Ingo Bürk [Wed, 8 Mar 2017 21:25:51 +0000 (22:25 +0100)]
Merge pull request #207 from stapelberg/disk_info
disk: sanitize trailing slashes
Michael Stapelberg [Wed, 8 Mar 2017 18:24:09 +0000 (19:24 +0100)]
remove useless checks (we use char, not unsigned char)
fixes compilation warnings
Michael Stapelberg [Wed, 8 Mar 2017 18:19:03 +0000 (19:19 +0100)]
disk: sanitize trailing slashes
fixes #200
Ingo Bürk [Tue, 7 Feb 2017 19:47:06 +0000 (20:47 +0100)]
Merge pull request #202 from jasperla/openbsd_fdleak
Plug an fd leak in the OpenBSD-specific code for _first_
Ingo Bürk [Tue, 7 Feb 2017 19:45:36 +0000 (20:45 +0100)]
Merge pull request #201 from jasperla/openbsd_bat_info
Suppress printing :00 seconds of remaining battery lifetime
Jasper Lievisse Adriaanse [Tue, 7 Feb 2017 18:23:53 +0000 (19:23 +0100)]
Plug an fd leak in the OpenBSD-specific code for _first_
Jasper Lievisse Adriaanse [Tue, 7 Feb 2017 18:25:03 +0000 (19:25 +0100)]
Suppress printing :00 seconds of remaining battery lifetime, as apm(4)'s
estimate only has a granularity of minutes.
From tb@openbsd.org
Baptiste Daroussin [Wed, 1 Feb 2017 19:28:01 +0000 (20:28 +0100)]
Fix the deciKelvin to Celsius conversion on FreeBSD (#195)
Change from ceiled value to floored value to be consistent with the
FreeBSD kernel
https://svnweb.freebsd.org/base?view=revision&revision=300421
Jasper Lievisse Adriaanse [Wed, 1 Feb 2017 07:28:38 +0000 (08:28 +0100)]
Make first_eth_interface() work on OpenBSD: (#197)
- use a define for loopback interface device
- use an approach similar to ifconfig(8) for determining device type
Jasper Lievisse Adriaanse [Wed, 1 Feb 2017 07:26:13 +0000 (08:26 +0100)]
Include sys/select.h on OpenBSD (#198)
Fixes a compilation error:
/usr/include/net80211/ieee80211_ioctl.h:339: warning: implicit declaration of function 'howmany'
/usr/include/net80211/ieee80211_ioctl.h:339: error: 'NBBY' undeclared here (not in a function)
/usr/include/net80211/ieee80211_ioctl.h:339: error: variably modified 'nr_rxmcs' at file scope
Michael Stapelberg [Sat, 21 Jan 2017 14:22:05 +0000 (15:22 +0100)]
release v2.11
Michael Stapelberg [Sat, 21 Jan 2017 14:53:09 +0000 (15:53 +0100)]
correctly write I3STATUS_VERSION on release
Michael Stapelberg [Sat, 21 Jan 2017 14:33:39 +0000 (15:33 +0100)]
Makefile: sort objects for deterministic linking order
Patch by Reiner Herrmann
Michael Stapelberg [Sat, 21 Jan 2017 14:31:51 +0000 (15:31 +0100)]
man: fix spelling errors
Michael Stapelberg [Sat, 21 Jan 2017 14:15:01 +0000 (15:15 +0100)]
man: switch link to directly go to github
Moritz Warning [Mon, 2 Jan 2017 15:06:06 +0000 (16:06 +0100)]
Consolidate measure speed script (#188)
* remove old net speed scripts
* add reworked net-speed script
* add space between rate and speed suffix
it is easier to parse visually
* only use intervals greater zero
* add ifaces examples
* catch negativ byte count
happens when the counter resets
Zhong Jianxin [Sun, 25 Dec 2016 22:00:15 +0000 (06:00 +0800)]
Re-license contrib/netspeed to the same as i3status (#189)
Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
Samuel Holland [Tue, 13 Dec 2016 18:32:57 +0000 (12:32 -0600)]
Fix i3status to compile with -fno-common (#185)
This avoids multiple declarations of the same global variable in
different source files.
eplanet [Sat, 19 Nov 2016 14:02:10 +0000 (15:02 +0100)]
Adding documentation for PR #179 (#182)
Michael Stapelberg [Wed, 16 Nov 2016 21:45:59 +0000 (13:45 -0800)]
Merge pull request #179 from mihaicmn/feature-threshold-format
Provide format_above_threshold/format_below_threshold options
Michael Stapelberg [Tue, 15 Nov 2016 17:27:44 +0000 (09:27 -0800)]
Merge pull request #178 from eplanet/ut_cpu_temp
Unit testing some new cases
Mihai Coman [Tue, 15 Nov 2016 11:34:06 +0000 (13:34 +0200)]
Add unit tests for threshold format
Mihai Coman [Mon, 14 Nov 2016 20:10:19 +0000 (22:10 +0200)]
Add 'format_below_threshold' option for 'disk' module
Add 'format_above_threshold' option for 'cpu_temperature' module
Add 'format_above_threshold' option for 'cpu_usage' module
Add 'format_above_threshold' option for 'load' module
eplanet [Mon, 14 Nov 2016 21:33:09 +0000 (21:33 +0000)]
Added test case for run_watch
The valid test case assumes pid 1 exists, which should always
be true on Unix environment.
eplanet [Mon, 14 Nov 2016 21:24:16 +0000 (21:24 +0000)]
Added unit test case for path_exists
eplanet [Mon, 14 Nov 2016 20:58:58 +0000 (20:58 +0000)]
Added unit test case for CPU temperature
eplanet [Mon, 14 Nov 2016 08:13:44 +0000 (09:13 +0100)]
Unit testing in Travis (#170)
Jon Bernard [Sat, 12 Nov 2016 14:39:41 +0000 (09:39 -0500)]
Use blank padding for wireless quality (#166) (#167)
Björn Lindström [Mon, 24 Oct 2016 06:43:04 +0000 (13:43 +0700)]
Setting of custom locale in tztime configuration. (#168)
To be able to show my birth country's time zone in that country's locale, and my local time in my current locale.
Stu Zhao [Sun, 23 Oct 2016 19:20:31 +0000 (15:20 -0400)]
Detect batteries using glob (#163)
Watcom [Wed, 14 Sep 2016 07:26:45 +0000 (04:26 -0300)]
pulse device may be specified by name (#126) (#162)
Michael Stapelberg [Mon, 5 Sep 2016 06:35:24 +0000 (08:35 +0200)]
Bugfix: re-add single quotes around I3STATUS_VERSION
related to https://github.com/i3/i3/issues/2437
Michael Stapelberg [Mon, 29 Aug 2016 07:45:15 +0000 (09:45 +0200)]
Merge pull request #140 from tommie/multibatt
Implement aggregates in print_battery_info
Tommie Gannert [Mon, 1 Aug 2016 17:03:03 +0000 (18:03 +0100)]
Implement aggregates for batteries.
Using title number all, this enables aggregates. Note that FreeBSD and
OpenBSD previously only reported aggregates, so this is bringing Linux
and NetBSD that functionality.
Changes the default battery reporting to the aggregate since most
users probably don't care about individual batteries. For single-battery
systems there should be no change.
Fixes one obvious memory leak in NetBSD.
Tommie Gannert [Tue, 16 Aug 2016 08:18:05 +0000 (09:18 +0100)]
Match trailing equal sign in slurp_battery_info.
Should make it more resilient to future ambiguities in uevent.
Cihangir Akturk [Mon, 22 Aug 2016 17:23:59 +0000 (20:23 +0300)]
Parse uevent file to detect network device type (#153)
Currently i3status differentiates wireless and wired devices based
on the existence of wireless directory inside the device's sysfs
directory. This approach seems to cause 3g modems to be incorrectly
identified as the first ethernet device.
This commit solves this problem by using DEVTYPE variable from
uevent file.
Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
Michael Stapelberg [Mon, 22 Aug 2016 06:48:55 +0000 (08:48 +0200)]
print_wireless_info: fix FTBFS on hurd and kfreebsd
Patch by Axel Beckert.
tnnn [Sun, 21 Aug 2016 20:11:19 +0000 (22:11 +0200)]
Added missing ampere to watt conversion for last full capacity. (#158)
Signed-off-by: Tomasz Nitecki <tnnn@tnnn.pl>
Michael Stapelberg [Wed, 17 Aug 2016 06:16:20 +0000 (08:16 +0200)]
default config: remove DHCP, VPN
VPN was removed because it pointed to vpnc, which hasn’t been updated
since 2008 and is long obsolete in favor of openconnect. Since different
people use different VPN solutions, though (and other modules configured
by default do actually work regardless of the system), let’s remove this
and have people who need it configure it explicitly.
DHCP was removed because modern systems often don’t use dhclient anymore
(but rather systemd-networkd’s DHCP client, which can also be used via
NetworkManager these days) and because it fails our philosophy test:
it’s not something which you would look at every now and then if
i3status didn’t expose it.
eplanet [Tue, 16 Aug 2016 07:29:08 +0000 (09:29 +0200)]
Print empty string for not mounted disks. (#148)
An empty string becomes the default value for format_not_mounted parameter
for any disk entry. This avoids printing erroneous values when a
filesystem is not mounted.
tommie [Mon, 15 Aug 2016 06:52:20 +0000 (07:52 +0100)]
Move time and ratio computations out of slurp_battery_info. (#151)
This allows OSes that support reporting multiple batteries to simply
sum into full_design,full_last,remaining and let print_battery_info
make computations.
Michael Stapelberg [Sun, 14 Aug 2016 20:01:35 +0000 (13:01 -0700)]
Merge pull request #150 from tommie/incremental_multibatt
Move full_design and full_last into struct battery_info
Tommie Gannert [Mon, 1 Aug 2016 14:25:13 +0000 (15:25 +0100)]
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.
Tommie Gannert [Mon, 1 Aug 2016 19:17:50 +0000 (20:17 +0100)]
Also capture charge rate in NetBSD.
For time estimates when charging.
Michael Stapelberg [Sun, 14 Aug 2016 13:29:20 +0000 (06:29 -0700)]
Merge pull request #149 from tommie/incremental_multibatt
Fix some compilation warnings on OpenBSD and NetBSD
Tommie Gannert [Sun, 14 Aug 2016 11:35:52 +0000 (12:35 +0100)]
Fix warnings about using a char array index on NetBSD.
The isspace macro is just a table lookup.
Tommie Gannert [Mon, 1 Aug 2016 19:28:16 +0000 (20:28 +0100)]
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.
Tommie Gannert [Mon, 1 Aug 2016 13:34:39 +0000 (14:34 +0100)]
Make print_disk_info, print_eth_info and print_wireless_info compile on NetBSD without warnings.
Tommie Gannert [Mon, 1 Aug 2016 10:37:47 +0000 (11:37 +0100)]
Remove warnings about unused variables in slurp_battery_info on OpenBSD.
Tommie Gannert [Mon, 1 Aug 2016 10:29:18 +0000 (11:29 +0100)]
Define IW_ESSID_MAX_SIZE for OpenBSD.
Also fixes a signedness warning.
Michael Stapelberg [Sat, 13 Aug 2016 21:01:48 +0000 (14:01 -0700)]
Merge pull request #145 from tommie/incremental_multibatt
Move OS-specific code from print_battery_info to a separate function
eplanet [Sat, 13 Aug 2016 20:46:31 +0000 (22:46 +0200)]
Deleting VERSION and extracting it from I3STATUS_VERSION instead (#146)
Tommie Gannert [Mon, 1 Aug 2016 00:49:12 +0000 (01:49 +0100)]
Move OS-specific code to slurp_battery_info.
Tommie Gannert [Mon, 1 Aug 2016 00:36:23 +0000 (01:36 +0100)]
Introduce a struct battery_info to carry information from data retrieval to the output formatter.
Michael Stapelberg [Wed, 3 Aug 2016 22:21:37 +0000 (00:21 +0200)]
Merge pull request #144 from tommie/incremental_multibatt
Refactor color code and computation of seconds_remaining in print_battery_info
Tommie Gannert [Mon, 1 Aug 2016 00:27:44 +0000 (01:27 +0100)]
Refactor common seconds_remaining code in print_battery_info.
Tommie Gannert [Mon, 1 Aug 2016 00:19:23 +0000 (01:19 +0100)]
Remove an END_COLOR in print_battery_info for OpenBSD.
This was probably a bug since it makes no sense to have here.
Tommie Gannert [Mon, 1 Aug 2016 00:15:35 +0000 (01:15 +0100)]
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).
Michael Stapelberg [Wed, 3 Aug 2016 21:14:14 +0000 (23:14 +0200)]
Merge pull request #143 from tommie/incremental_multibatt
Remove emptytimebuf and consumptionbuf from print_battery_info
Tommie Gannert [Mon, 1 Aug 2016 00:07:23 +0000 (01:07 +0100)]
Remove consumptionbuf from print_battery_info.
Tommie Gannert [Mon, 1 Aug 2016 00:00:31 +0000 (01:00 +0100)]
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.
Michael Stapelberg [Wed, 3 Aug 2016 16:45:45 +0000 (18:45 +0200)]
Merge pull request #142 from tommie/incremental_multibatt
Remove statusbuf, percentagebuf and remainingbuf from print_battery_info
Tommie Gannert [Sun, 31 Jul 2016 23:51:48 +0000 (00:51 +0100)]
Remove remainingbuf from print_battery_info.
eplanet [Mon, 1 Aug 2016 20:16:50 +0000 (22:16 +0200)]
Fixed typo in README.md (#141)
Tommie Gannert [Sun, 31 Jul 2016 23:33:19 +0000 (00:33 +0100)]
Remove percentagebuf from print_battery_info.
Tommie Gannert [Sun, 31 Jul 2016 23:24:40 +0000 (00:24 +0100)]
Remove statusbuf from print_battery_info.
Michael Stapelberg [Sat, 30 Jul 2016 17:23:20 +0000 (19:23 +0200)]
Merge pull request #139 from Gjum/wb-colored-cpu-usage
Add CPU usage color thresholds
Gjum [Wed, 27 Jul 2016 17:57:50 +0000 (19:57 +0200)]
change default cpu_usage thresholds to 90 and 95
Bandie Yip Kojote [Thu, 30 Jun 2016 07:52:35 +0000 (07:52 +0000)]
Manpage subsection TzTime: Example config now matches to the context (#134)
eplanet [Mon, 27 Jun 2016 06:49:51 +0000 (08:49 +0200)]
Added version files for release tarball. Fixes #78 (#132)
eplanet [Wed, 15 Jun 2016 21:13:40 +0000 (23:13 +0200)]
Default configuration paths ordered the same way as i3. Fixes #129 (#130)
Michael Stapelberg [Wed, 15 Jun 2016 19:41:27 +0000 (21:41 +0200)]
travis: use trusty instead of (failing) llvm repo
Alexis Hildebrandt [Fri, 13 May 2016 07:50:09 +0000 (09:50 +0200)]
Add ifdef to compile wireless_info on Mac (#127)
Watcom [Sat, 7 May 2016 22:19:30 +0000 (19:19 -0300)]
reconnect to PulseAudio if connection is lost (fixes #124) (#125)