Actually there is a builting padding functionnality in the net widget
of wicked. It's the last argument to the register function. But
strangely it only applies to ${interface down} and ${interface up},
not to it's variants.
So I guess after all, modifying wicked.lua isn't such bad idea :) .
Here is the modified wicked.lua, I'll ask why it has been implemented
that way on a different thread.
Here is the diff:
py...@home$ diff wicked.lua /usr/share/awesome/lib/wicked.lua
570,571c570,571
< args['{'..name..' down_kb}'] = math.floor(down/1024*10)/10
< args['{'..name..' up_kb}'] = math.floor(up/1024*10)/10
---
> args['{'..name..' down_kb}'] = helper.padd
> (math.floor(down/1024), 4)
> args['{'..name..' up_kb}'] = helper.padd(math.floor(up/1024),
> 4)
--
Damien "pyrho" Rajon
wicked.lua
Description: Binary data
