Vicious net widget and dynamic interface
        Posted  
        
            by 
                tdi
            
        on Super User
        
        See other posts from Super User
        
            or by tdi
        
        
        
        Published on 2012-04-10T06:35:58Z
        Indexed on 
            2012/07/09
            9:18 UTC
        
        
        Read the original article
        Hit count: 242
        
Ive got pretty standard vicious net widget for the eth0, yet this is my laptop and I move a lot, sometimes I use wlan0, sometimes ppp0. Is there a way in vicious to dynamically choose the active iface?
netwidget = widget({ type = "textbox" })
-- Register widget
vicious.register(netwidget, vicious.widgets.net, '<span color="'
.. beautiful.fg_netdn_widget ..'">${eth0 down_kb}</span> <span color="'
.. beautiful.fg_netup_widget ..'">${eth0 up_kb}</span>', 3)
© Super User or respective owner