SHARE
TWEET

network_widget_awesome

helenaryuu Dec 12th, 2012 902 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- {{{ Network usage widget
  2.   -- icons
  3.     neticonup = widget({type = "imagebox" })
  4.     neticonup.image = image(beautiful.widget_net_up)
  5.     neticonup.resize = false
  6.     awful.widget.layout.margins[neticonup] = { top = 3 }
  7.     neticondown = widget({type = "imagebox" })
  8.     neticondown.image = image(beautiful.widget_net_down)
  9.     neticondown.resize = false
  10.     awful.widget.layout.margins[neticondown] = { top = 3 }
  11.   -- Initialize widget
  12.     netwidgetup = widget({ type = "textbox" })
  13.     vicious.register(netwidgetup, vicious.widgets.net, '<span color="#7F9F7F">${eth0 up_kb}</span>', 3)
  14.     netwidgetdown = widget({ type = "textbox" })
  15.     vicious.register(netwidgetdown, vicious.widgets.net, '<span color="#CC9393">${eth0 down_kb}</span>', 3)
  16. --- }}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top