It would be grate! :) Is it possible to implement widget width parameter in wicked?
2009/3/10, Damien Rajon <[email protected]>: > On Mon, Mar 9, 2009 at 4:26 AM, Владимир Байраковский <[email protected]> > wrote: >> Looks great but... I've tried this construction: >> >> wicked.register(netwidget_down, wicked.widgets.net, >> function () >> string.format ("%04d", ${ppp0 down_kb}) >> end, >> nil, nil, 3) >> >> but error occurs: "unexpected symbol near '$'". >> >> I tried other variations, but still did not work. > > Hi, > > Yeah, I figured out too. I think it's because the ${interface down_kb} > variable is expanded by wicked itself, so you cannot use it inside > your rc.lua. > The solution would be to register your own net-meter script with > wicked, since modifying directly /usr/share/awesome/lib/wicked.lua > isn't a good idea. > Wicked is parsing the output of 'cat /proc/net/dev', I'll probably > make a script that parses this output and formats it to a fixed width > when I get home and post it here. > > -- > Damien "pyrho" Rajon > -- Отправлено с моего мобильного устройства -- To unsubscribe, send mail to [email protected].
