Widget type by Radu provides active netcfg profiles in a table. In
contrib until we see what can be done with this, who wants to use it
and if data should be provided in other formats. We can't be certain
of the number of active profiles so a format string like $1|$2|$3 will
vary between sessions.
- for each interface, read carrier info from sysfs into
args["{"..name.." carrier}"], 1 means 'link up', 0 'link down'
- the carrier info for the 'total' pseudo-interface is a logical or of
the carriers of the summed interfaces (i.e. those not contained in
the ignore list)
- sum rates of all interfaces (except the ones in an ignore list) and
make them available under the interfacename "total"
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Widget type by Greg D. exposes lm_sensors data. Accessing a specific
sensor is done with a a widget argument, i.e.: "temp1" or "Core
0". The 1st returned value is the input (i.e. temperature of a thermal
sensor) and 2nd the relative percent in regard to reaching critical(or
maximum) temperature.
This code was requested by an iBook G4 owner. Widget type reads
information from /proc/pmu, and takes an argument like "battery_0". It
exposes the same data, in the same way, as all the other battery
widgets.
Widget sent by Benedikt Sauer uses data exposed trough /sys, but it is
used in the same way as bat.lua and /proc. However batsys depends on
LuaFileSystem.