aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-07Suppress printing :00 seconds of remaining battery lifetime, as apm(4)'sJasper Lievisse Adriaanse1-1/+1
estimate only has a granularity of minutes. From tb@openbsd.org
2017-02-01Fix the deciKelvin to Celsius conversion on FreeBSD (#195)Baptiste Daroussin1-1/+1
Change from ceiled value to floored value to be consistent with the FreeBSD kernel https://svnweb.freebsd.org/base?view=revision&revision=300421
2017-01-31Make first_eth_interface() work on OpenBSD: (#197)Jasper Lievisse Adriaanse1-1/+63
- use a define for loopback interface device - use an approach similar to ifconfig(8) for determining device type
2017-01-31Include sys/select.h on OpenBSD (#198)Jasper Lievisse Adriaanse1-0/+1
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
2017-01-21release v2.11Michael Stapelberg4-3/+32
2017-01-21correctly write I3STATUS_VERSION on releaseMichael Stapelberg1-1/+1
2017-01-21Makefile: sort objects for deterministic linking orderMichael Stapelberg1-1/+1
Patch by Reiner Herrmann
2017-01-21man: fix spelling errorsMichael Stapelberg1-2/+2
2017-01-21man: switch link to directly go to githubMichael Stapelberg1-1/+1
2017-01-02Consolidate measure speed script (#188)Moritz Warning4-202/+79
* 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
2016-12-25Re-license contrib/netspeed to the same as i3status (#189)Zhong Jianxin1-19/+4
Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
2016-12-13Fix i3status to compile with -fno-common (#185)Samuel Holland2-9/+20
This avoids multiple declarations of the same global variable in different source files.
2016-11-19Adding documentation for PR #179 (#182)eplanet3-5/+24
2016-11-16Merge pull request #179 from mihaicmn/feature-threshold-formatMichael Stapelberg17-231/+301
Provide format_above_threshold/format_below_threshold options
2016-11-15Merge pull request #178 from eplanet/ut_cpu_tempMichael Stapelberg8-0/+43
Unit testing some new cases
2016-11-15Add unit tests for threshold formatMihai Coman11-0/+59
2016-11-15Add 'format_below_threshold' option for 'disk' moduleMihai Coman6-231/+242
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
2016-11-14Added test case for run_watcheplanet3-0/+16
The valid test case assumes pid 1 exists, which should always be true on Unix environment.
2016-11-14Added unit test case for path_existseplanet2-0/+15
2016-11-14Added unit test case for CPU temperatureeplanet3-0/+12
2016-11-14Unit testing in Travis (#170)eplanet6-12/+86
2016-11-12Use blank padding for wireless quality (#166) (#167)Jon Bernard1-3/+3
2016-10-24Setting of custom locale in tztime configuration. (#168)Björn Lindström4-4/+17
To be able to show my birth country's time zone in that country's locale, and my local time in my current locale.
2016-10-23Detect batteries using glob (#163)Stu Zhao3-32/+33
2016-09-14pulse device may be specified by name (#126) (#162)Watcom4-31/+75
2016-09-05Bugfix: re-add single quotes around I3STATUS_VERSIONMichael Stapelberg1-1/+1
related to https://github.com/i3/i3/issues/2437
2016-08-29Merge pull request #140 from tommie/multibattMichael Stapelberg5-50/+206
Implement aggregates in print_battery_info
2016-08-28Implement aggregates for batteries.Tommie Gannert5-41/+197
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.
2016-08-22Match trailing equal sign in slurp_battery_info.Tommie Gannert1-9/+9
Should make it more resilient to future ambiguities in uevent.
2016-08-22Parse uevent file to detect network device type (#153)Cihangir Akturk2-7/+53
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>
2016-08-22print_wireless_info: fix FTBFS on hurd and kfreebsdMichael Stapelberg1-0/+4
Patch by Axel Beckert.
2016-08-21Added missing ampere to watt conversion for last full capacity. (#158)tnnn1-0/+2
Signed-off-by: Tomasz Nitecki <tnnn@tnnn.pl>
2016-08-17default config: remove DHCP, VPNMichael Stapelberg1-10/+0
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.
2016-08-16Print empty string for not mounted disks. (#148)eplanet2-7/+7
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.
2016-08-14Move time and ratio computations out of slurp_battery_info. (#151)tommie1-50/+33
This allows OSes that support reporting multiple batteries to simply sum into full_design,full_last,remaining and let print_battery_info make computations.
2016-08-14Merge pull request #150 from tommie/incremental_multibattMichael Stapelberg1-44/+37
Move full_design and full_last into struct battery_info
2016-08-14Move full_design and full_last into struct battery_info.Tommie Gannert1-44/+34
This is in preparation for moving the ratio computation code out of slurp_battery_info to support aggregating multiple batteries.
2016-08-14Also capture charge rate in NetBSD.Tommie Gannert1-0/+3
For time estimates when charging.
2016-08-14Merge pull request #149 from tommie/incremental_multibattMichael Stapelberg4-62/+43
Fix some compilation warnings on OpenBSD and NetBSD
2016-08-14Fix warnings about using a char array index on NetBSD.Tommie Gannert1-8/+8
The isspace macro is just a table lookup.
2016-08-14Simplify string comparisons in slurp_battery_info for NetBSD.Tommie Gannert1-47/+11
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-14Make print_disk_info, print_eth_info and print_wireless_info compile on ↵Tommie Gannert3-1/+13
NetBSD without warnings.
2016-08-14Remove warnings about unused variables in slurp_battery_info on OpenBSD.Tommie Gannert1-5/+9
2016-08-14Define IW_ESSID_MAX_SIZE for OpenBSD.Tommie Gannert1-1/+2
Also fixes a signedness warning.
2016-08-13Merge pull request #145 from tommie/incremental_multibattMichael Stapelberg1-75/+93
Move OS-specific code from print_battery_info to a separate function
2016-08-13Deleting VERSION and extracting it from I3STATUS_VERSION instead (#146)eplanet2-3/+2
2016-08-03Move OS-specific code to slurp_battery_info.Tommie Gannert1-63/+72
2016-08-03Introduce a struct battery_info to carry information from data retrieval to ↵Tommie Gannert1-50/+59
the output formatter.
2016-08-04Merge pull request #144 from tommie/incremental_multibattMichael Stapelberg1-82/+25
Refactor color code and computation of seconds_remaining in print_battery_info
2016-08-03Refactor common seconds_remaining code in print_battery_info.Tommie Gannert1-19/+16