Hi Max,
I don't thing awful.widget.layout.horizontal.rightleft exists anymore.
Here's how it's done in my rc.lua (your widgets will differ, of
course):
for s = 1, screen.count() do
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt()
-- Create an imagebox widget which will contains an icon
indicating which layout we're using.
-- We need one layoutbox per screen.
mylayoutbox[s] = awful.widget.layoutbox(s)
mylayoutbox[s]:buttons(awful.util.table.join(
awful.button({ }, 1, function ()
awful.layout.inc(layouts, 1) end),
awful.button({ }, 3, function ()
awful.layout.inc(layouts, -1) end),
awful.button({ }, 4, function ()
awful.layout.inc(layouts, 1) end),
awful.button({ }, 5, function ()
awful.layout.inc(layouts, -1) end)))
-- Create a taglist widget
mytaglist[s] = awful.widget.taglist(s,
awful.widget.taglist.filter.all, mytaglist.buttons)
-- Create a tasklist widget
mytasklist[s] = awful.widget.tasklist(s,
awful.widget.tasklist.filter.currenttags, mytasklist.buttons)
-- Create the wibox
mywibox[s] = awful.wibox({ position = "top", screen = s })
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(mylauncher)
left_layout:add(mytaglist[s])
left_layout:add(mypromptbox[s])
-- 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(baticon)
right_layout:add(batwidget)
right_layout:add(sepicon)
right_layout:add(volicon)
right_layout:add(vol)
right_layout:add(sepicon)
right_layout:add(mytextclock)
right_layout:add(mylayoutbox[s])
-- Now bring it all together (with the tasklist in the middle)
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_middle(mytasklist[s])
layout:set_right(right_layout)
mywibox[s]:set_widget(layout)
end
Hope that helps!
Vitor
On Wed, Sep 24, 2014 at 8:52 AM, Max Görner <[email protected]> wrote:
> Hi there,
> I've got a rc.lua I'd like to try out. Unfortunately, It is for 3.4 while I'm
> running 3.5. I get some errors when trying to run it.
>
> In the moment the error is due to a part which is adding widgets to wiboxes.
> It has striking similarities with the documentation
> (http://awesome.naquadah.org/wiki/Adding_widget_to_wibox). The error is due to
> the assignment to 'layout'. Unfortunately, the wiki page has no 3.5-version
> now.
>
> Can anyone help me to solve this problem?
>
> sincerely,
> Max Görner
>
> --
> To unsubscribe, send mail to [email protected].
--
To unsubscribe, send mail to [email protected].