summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-04Rename ram variables consistentlyBenedikt Heine
2018-04-11Implement support for memory-usage on LinuxFelix Buehler
2018-02-12Merge pull request #266 from moreais/masterIngo Bürk
OpenBSD: fix volume display on some hardware
2018-02-13OpenBSD: fix volume display on some hardwareCarlin Bingham
On some hardware the AUDIO_MIXER_READ ioctl requires the current number of channels to be set, and the mute device found needs to be checked if it belongs to the master output device.
2018-02-06Merge pull request #262 from foutaise/masterIngo Bürk
Add check for interval value
2018-02-06Add check for interval valuefoutaise
2018-02-03Merge pull request #261 from tylerbrazier/no-slocIngo Bürk
Remove SLOC comment from man page
2018-02-02Remove SLOC comment from man pageTyler Brazier
This changed happened for the readme in 73620dc876d7f76b9a6771048c5ad0ade94e5bd7
2018-01-28Treat zero battery capacity as "not available" (#259)johcgt
`print_battery_info` computes `batt_info.percentage_remaining` by dividing batt_info.remaining by `full`. If `full` is `0` then the battery remaining will be reported as "inf". Before this, it tries to set `full` to either the design capacity or to the last known good charge. It determines if these values are available by checking whether their fields in `batt_info` are non-negative. As it initialized `batt_info` with values of `-1`, a non-negative value implies that something has provided a value. `slurp_all_batteries` and `add_battery_info` however initialize these fields to zero, so if these functions are called then `batt_info.full_design` will always be used. This means that on systems that don't provide a value for design capacity the percentage remaining will be reported as "inf", unless the user has set `last_full_capacity` to `true` in their `i3status.conf`. This patch changes `print_battery_info` to expect values for the battery capacity to be strictly greater than zero. This seems reasonable as a battery with a capacity of zero isn't useful. An alternative solution would be to change `slurp_all_batteries` and `add_battery_info` to initialize `batt_info` with `-1`, as `print_battery_info` does. This is less appealing as `add_battery_info` is accumulating the values, so using `-1` would introduce off-by-one errors without additional code to avoid them.
2017-12-12Merge pull request #255 from eplanet/update_readmeIngo Bürk
Get rid of the SLOC comment
2017-12-11Get rid of the SLOC commenteplanet
2017-12-11Update comment as in #247 (#254)Emeric Planet
2017-12-11Add IPv6 address when IPv4 isn't available (#247)Emeric Planet
2017-12-09Merge pull request #253 from eplanet/always_reload_tzIngo Bürk
Call tzset at each time print
2017-12-09Call tzset at each time printeplanet
2017-12-09Merge pull request #252 from GuyOfThePery/patch-1Ingo Bürk
Fixed minor typos
2017-12-09Fixed minor typosGuyOfThePery
"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."
2017-11-20Add network test cases (#246)Emeric Planet
2017-10-05Merge pull request #237 from kousu/215-batteryMichael Stapelberg
Be more cautious about handling invalid battery measurements.
2017-10-05Fix CPU unit tests (#239)Emeric Planet
Support any amount of available cores on testing machine.
2017-09-18Makefile: make PKG_CONFIG overridable (patch by Helmut Grohne)Michael Stapelberg
2017-08-29Fix CPU unit tests (#239)Emeric Planet
Support any amount of available cores on testing machine.
2017-08-24Repair test case.kousu
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.
2017-08-24Be more cautious about handling invalid battery measurements.kousu
2017-08-19Use local timezone for battery %emptytime (#236)Emeric Planet
2017-04-16Merge pull request #219 from flammi/masterIngo Bürk
Add check for virtual ethernet devices
2017-04-13Add battery capacity parsing (#216)Emeric Planet
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
2017-04-13Added bracesFabian Franzen
Added braces to the if-statement as requested.
2017-04-12Fix memory leak/Use BEGINS_WITH macroFabian Franzen
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.
2017-04-12Add check for virtual ethernet devicesFabian Franzen
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).
2017-03-26Multiple CPU support for cpu_usage (#209)eplanet
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.
2017-03-16Merge pull request #211 from ixjlyons/issue210Ingo Bürk
disk: don't remove trailing slash if path is a single character
2017-03-10disk: don't remove trailing slash if path is a single characterKenneth Lyons
2017-03-08Merge pull request #208 from stapelberg/warningIngo Bürk
remove useless checks (we use char, not unsigned char)
2017-03-08Merge pull request #207 from stapelberg/disk_infoIngo Bürk
disk: sanitize trailing slashes
2017-03-08remove useless checks (we use char, not unsigned char)Michael Stapelberg
fixes compilation warnings
2017-03-08disk: sanitize trailing slashesMichael Stapelberg
fixes #200
2017-02-07Merge pull request #202 from jasperla/openbsd_fdleakIngo Bürk
Plug an fd leak in the OpenBSD-specific code for _first_
2017-02-07Merge pull request #201 from jasperla/openbsd_bat_infoIngo Bürk
Suppress printing :00 seconds of remaining battery lifetime
2017-02-07Plug an fd leak in the OpenBSD-specific code for _first_Jasper Lievisse Adriaanse
2017-02-07Suppress printing :00 seconds of remaining battery lifetime, as apm(4)'sJasper Lievisse Adriaanse
estimate only has a granularity of minutes. From tb@openbsd.org
2017-02-01Fix the deciKelvin to Celsius conversion on FreeBSD (#195)Baptiste Daroussin
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 Adriaanse
- 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 Adriaanse
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.112.11Michael Stapelberg
2017-01-21correctly write I3STATUS_VERSION on releaseMichael Stapelberg
2017-01-21Makefile: sort objects for deterministic linking orderMichael Stapelberg
Patch by Reiner Herrmann
2017-01-21man: fix spelling errorsMichael Stapelberg
2017-01-21man: switch link to directly go to githubMichael Stapelberg
2017-01-02Consolidate measure speed script (#188)Moritz Warning
* 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