summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-08Merge pull request #275 from winks/patch-2Ingo Bürk
Fix NULL value on OpenBSD when there is no acpitz0
2018-04-06Fix NULL value on OpenBSD when there is no acpitz0Florian Anderiasch
Using %degrees on OpenBSD resulted in garbage values if sysctl doesn't know about any cpu temperature sensors.
2018-03-29Merge pull request #213 from dlrobertson/addr_descriptionIngo Bürk
Show IP address when address has a label
2018-03-29Show IP address when address has a labelDan Robertson
If an address has been added with a label, ensure the correct address is shown.
2018-03-27Merge pull request #264 from foutaise/masterIngo Bürk
Make iface_type() work on FreeBSD
2018-03-27Merge branch 'master' into masterIngo Bürk
2018-03-27Merge pull request #251 from tomaskrizek/man-eth-wireless-formatIngo Bürk
man: explicitly use format_up/format_down in ethernet, wireless conf
2018-03-27Merge pull request #243 from jasperla/fei_errorIngo Bürk
Remove overly aggressive #error
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-07Make iface_type() work on FreeBSDGerome Fournier
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-12-03man: explicitly use format_up/format_down in ethernet, wireless confTomas Krizek
Clearly indicate format_up and format_down are used for configuring ethernet and wireless sections instead of format. Signed-off-by: Tomas Krizek <tomas.krizek@mailbox.org>
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-09-04Remove overly aggressive #errorJasper Lievisse Adriaanse
Change-Id: I8c20606d386d713cac51b620d1fcdb479a3622fe
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