This is the code use to set the different widgets in vicious depending
on which functions exist.

function update in vicious/init.lua: line 75
...
    if widget.add_value ~= nil then
        widget:add_value(tonumber(data) and tonumber(data)/100)
    elseif widget.set_value ~= nil then
        widget:set_value(tonumber(data) and tonumber(data)/100)
    elseif widget.set_markup ~= nil then
        widget:set_markup(data)
    else
        widget.text = data
    end
...

For awful.widget.graph this is add_value. `data` is the callback what
you initial set vicious.register().
This must be convertable to number using the tonumber(). So you can't
using custom formatting as you wan't.

The question is, what kind of custom formating you wan't to use and why?

-- 
To unsubscribe, send mail to [email protected].

Reply via email to