diff --git a/rc.lua b/rc.lua
index 700d1ff..1438323 100644
--- a/rc.lua
+++ b/rc.lua
@@ -10,6 +10,7 @@ require("naughty")
require("autostart")
require("apps")
require("volume")
+require("vicious")
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
@@ -127,6 +128,16 @@ mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
-- }}}
-- {{{ Wibox
+ -- Network usage widget
+ -- Initialize widget
+ netwidget = widget({ type = "textbox" })
+ -- Register widget
+ vicious.register(netwidget, vicious.widgets.net, '${wlan0 down_kb} ${wlan0 up_kb}', 3)
+dnicon = widget({ type = "imagebox" })
+upicon = widget({ type = "imagebox" })
+dnicon.image = image(beautiful.widget_net)
+upicon.image = image(beautiful.widget_netup)
+
-- Create a textclock widget
mytextclock = awful.widget.textclock({ align = "right" })
@@ -210,6 +221,8 @@ for s = 1, screen.count() do
mylayoutbox[s],
mytextclock,
volume_widget,
+ netwidget,
+ -- separator, upicon, netwidget, dnicon,
s == 1 and mysystray or nil,
mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft
diff --git a/theme.lua b/theme.lua
index 572e703..9b92a8d 100644
--- a/theme.lua
+++ b/theme.lua
@@ -92,5 +92,10 @@ theme.layout_dwindle = "/usr/share/awesome/themes/default/layouts/dwindlew.png"
theme.awesome_icon = "/usr/share/awesome/icons/awesome16.png"
+
+theme.widget_net = "~/.config/awesome/icons/down.png"
+theme.widget_netup = "~/.config/awesome/icons/up.png"
+
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
+