You are not logged in.
Hello everybody. I'm running awesome 3.5 on Arch(obviously), and I'm attempting to set background colors for some of my widgets, but I think I might be using the wrong syntax(i.e. awesome 3 instead of 3.5). Here's what I have in my rc.lua:
memwidget = wibox.widget.textbox()
vicious.register(memwidget, vicious.widgets.mem, "$1%", 13)
memwidget:set_bg("#ccccc7")When I save and restart awesome I get the error:
rc.lua:170: attempt to call field 'set_bg' (a nil value)
I got my information on how to do this from here: http://comments.gmane.org/gmane.comp.wi … esome/9763. Obviously I'm incorrect in some way, I just don't know how.
EDIT: My mistake I skimmed a bit too much. Here's what got it to work:
memwidget_text = wibox.widget.textbox()
memwidget = wibox.widget.background()
memwidget:set_widget(memwidget_text)
vicious.register(memwidget_text, vicious.widgets.mem, "$1%", 13)
memwidget:set_bg("#ccccc7")Last edited by xworld (2015-02-03 19:06:27)
Offline
I think that's old syntax.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
I fixed it soon after posting. Thank you.
Offline