I'm trying to add the network usage widget shown in the Awesome wiki but I'm running into an error. Here is the code:
-- Create the wibox
mywibox[s] = awful.wibox({ position = "top", screen = s })
-- Add widgets to the wibox - order matters
mywibox[s].widgets = {
{
mylauncher,
mytaglist[s],
mypromptbox[s],
layout = awful.widget.layout.horizontal.leftright
},
mylayoutbox[s],
mytextclock,
netwidget, -- ADD THIS, don't forget the comma!
s == 1 and mysystray or nil,
mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft
}
end
-- }}}
The error I'm getting says " expected near 'end'". I assume they mean the 'end' in the code here, as it's red in my rc.lua file, but I can't figure out what I should do with it.
Thanks in advance for any help.