Age | Commit message (Collapse) | Author |
|
|
|
|
|
Patch by Reiner Herrmann
|
|
|
|
|
|
* 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
|
|
Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
|
|
This avoids multiple declarations of the same global variable in
different source files.
|
|
|
|
Provide format_above_threshold/format_below_threshold options
|
|
Unit testing some new cases
|
|
|
|
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
|
|
The valid test case assumes pid 1 exists, which should always
be true on Unix environment.
|
|
|
|
|
|
|
|
|
|
To be able to show my birth country's time zone in that country's locale, and my local time in my current locale.
|
|
|
|
|
|
related to https://github.com/i3/i3/issues/2437
|
|
Implement aggregates in print_battery_info
|
|
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.
|
|
Should make it more resilient to future ambiguities in uevent.
|
|
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>
|
|
Patch by Axel Beckert.
|
|
Signed-off-by: Tomasz Nitecki <tnnn@tnnn.pl>
|
|
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.
|
|
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.
|
|
This allows OSes that support reporting multiple batteries to simply
sum into full_design,full_last,remaining and let print_battery_info
make computations.
|
|
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.
|
|
For time estimates when charging.
|
|
Fix some compilation warnings on OpenBSD and NetBSD
|
|
The isspace macro is just a table lookup.
|
|
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.
|
|
NetBSD without warnings.
|
|
|
|
Also fixes a signedness warning.
|
|
Move OS-specific code from print_battery_info to a separate function
|
|
|
|
|
|
the output formatter.
|
|
Refactor color code and computation of seconds_remaining in print_battery_info
|
|
|
|
This was probably a bug since it makes no sense to have here.
|
|
This uses the more direct tests of whether percentage_remaining and
seconds_remaining are available or not (rather than looking at
present_rate).
|
|
Remove emptytimebuf and consumptionbuf from print_battery_info
|
|
|