You are not logged in.

#1 2011-03-10 21:40:25

Jedipottsy
Member
Registered: 2008-05-22
Posts: 18

AwesomeWM Widget problem

Hi,
Ive installed Awesome-git and vicious-git, and i have my rc.lua nice, but adding wigets causes it to crash.
heres my current rc.lua http://pastebin.com/Q3xRmrr1


adding this:

-- Initialize widget
batwidget = widget({ type = "textbox" })
-- Register widget
vicious.register(batwidget, vicious.widgets.bat, "$2", 61, "BAT0")

--------------------------------

    -- Widgets that are aligned to the right
    local right_layout = wibox.layout.fixed.horizontal()
    if s == 1 then right_layout:add(wibox.widget.systray()) end
    right_layout:add(batwidget)
    right_layout:add(mytextclock)
    right_layout:add(mylayoutbox[s])

i get an error about

 attempt to call global 'widget' (a nil value) 

Any ideas?

Offline

#2 2011-03-12 06:39:29

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: AwesomeWM Widget problem

There is no widget(). You want wibox.widget.textbox(). I remember you from IRC, if you use -git you must accept responsability for things like this.


You need to install an RTFM interface.

Offline

Board footer

Powered by FluxBB