Alexander Koch
5e0cb0c84a
[hwmontemp] Bring back sysfs path cache
...
Cache sysfs path resolved from given name index in local table. This avoids
spawning a `grep` process over and over again for each invocation.
Co-authored-by: Nguyễn Gia Phong <mcsinyx@disroot.org>
2020-09-03 22:06:08 +07:00
Nguyễn Gia Phong
f54f1a7d8e
Update some copyright headers along with style change
...
Additionall introduce helpers.setcall to replace the cumbersome setmetatable
at the end of most synchronous widget types
2019-09-05 12:41:38 +07:00
Nguyễn Gia Phong
c91167f954
[hwmontemp_linux] Deprecate io.popen
...
Note that all failures now return an empty table instead of { N/A },
since N/A indicates missing information from a successful attempt.
2019-06-22 14:37:47 +07:00
Alexander Koch
ded191cf4e
widgets: Add hwmontemp_linux
...
Introduce hwmontemp_linux widget, which provides name-based access to hwmon
sensors via sysfs.
2019-02-14 19:42:53 +07:00