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.
It is a bit different from the overall vicious design, for now it is
in the contrib branch. We just gained some exposure and I expect more
people to send me stuff like this. It is still unclear weather vicious
will depend on third party libs (in which case we take an XML
parser). If not, maybe we will have a very basic html/xml parser as a
helper, or maybe neither and this widget will be introduced to master
(with a few more improvements I hope). It is too early to say, we just
got some users.
Contrib should be better known because of the extra widgets it
contains. While the vicious-fbsd branch by Richard Kolkovich was
already added to the vicious home page and needs more exposure.
Widget type uses curl now, like all other types accessing network
resources (until, if ever, we switch to luasocket). Where previously
only the currently playing song was returned now you can access these
keys: {volume}, {state}, {Artist}, {Title}, {Album}, {Genre}. You can
provide an optional table argument to change password, host or port.
Login information is now kept in the ~/.netrc file, which should be
readable only by the owner. This should solve futher problems with
unquoted characters addressed in the last commit. The format of the
~/.netrc file is as follows (also documented in the README):
machine mail.google.com login user password pass
This helper will capitalize the first letter of every word in a given
string. It'll be useful for some widget string which look out of place
otherwise, like "rain, snow" (<- where did this come from?). But it
can also be useful for people that like to use this format, camel case
or simillar.
Most distributions keep it in /sbin, some in /usr/sbin, and somewhere
it is, in other places it is not, in the user's $PATH. Now a simple
discovery is done to handle this.