You are not logged in.

#1 2013-09-26 18:42:22

h4ld3n
Member
Registered: 2013-09-16
Posts: 14

awesome wm batwidget - set gradiend color (a nil value) error

hey guys, I tried adding the batwidget to my awesome wm with this:

batwidget = awful.widget.progressbar()
  batwidget:set_width(8)
  batwidget:set_height(10)
  batwidget:set_vertical(true)
  batwidget:set_background_color("#494B4F")
  batwidget:set_border_color(nil)
  batwidget:set_color("#AECF96")
  batwidget:set_gradient_colors({ "#AECF96", "#88A175", "#FF5656" })
  vicious.register(batwidget, vicious.widgets.bat, "$2", 61, "BAT0")

and got error since
batwidget:set_gradient_colors({ "#AECF96", "#88A175", "#FF5656" })
is a nil value. If I take this line out there is no error (but the widget won't show up).
How can I fix the problem?
thenx in advace.

Offline

#2 2013-09-27 10:45:56

MrElg
Member
Registered: 2013-08-04
Posts: 49

Re: awesome wm batwidget - set gradiend color (a nil value) error

Hi again. I'm sorry, but I haven't much knowledge about this widget, since I use a conky for this purpose. Hence I didn't reply. But since nobody else did, I could at least make an attempt.

But could you share your entire rc.lua? I would like to see how you have entered this. Perhaps using some sort of pastebin.

Offline

#3 2013-09-27 20:25:37

Lennox
Member
Registered: 2012-07-16
Posts: 11

Re: awesome wm batwidget - set gradiend color (a nil value) error

Since you copied the example from the README file, the only variable would be the "BAT0". Make sure that is your battery ID. If not, change it. Why it gives you an error on the _gradient_colors line I can't explain.
Also, don't forget to add the batwidget to a wibox, as that may be the reason for you not seeing your battery status.

Last edited by Lennox (2013-09-27 20:26:05)


Nothing in this world that's worth having comes easy

Offline

Board footer

Powered by FluxBB