LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Tasklist Awesome wm (http://www.linuxquestions.org/questions/linux-desktop-74/tasklist-awesome-wm-4175496061/)

slack_ 02-24-2014 02:57 PM

Tasklist Awesome wm
 
Hi, I'm trying running Awesome WM and at the moment I'm trying to move the tasklist from the standard top bar, to a new wibox I created on the bottom. The bottom bar is there, but the tasklist won't actually show up.

I'm fairly certain there is proabably one small detail or line of code I'm missing in rc.lua to make it work. Any ideas?

rc.lua
Code:

-- }}}

mywibox2 = awful.wibox({ position = "bottom" })

    mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)

local layout = wibox.layout.align.horizontal()
layout:set_middle(mytasklist)


-- {{{ Mouse bindings

That's the wibox I created. It's located directly underneath the main one. Thanks.

TobiSGD 02-25-2014 12:48 PM

I am neither an expert in Lua nor with AwesomeWM, but shouldn't you somewhere assign mytasklist (or the layout it is in) to mywibox2?
What I mean is:
- You create mywibox2
- You create mytasklist
- You create a local layout and assign mytasklist to it
- You do not assign that layout to mywibar2

I would guess that you just have missed the last step.

slack_ 02-26-2014 04:35 PM

Thank you, will try that. It's always something simple.

slack_ 03-04-2014 12:51 PM

Well, I tried assigning the layout to wibox2 but it didn't seem to work. Here's what I have:

Code:

mywibox2 = awful.wibox({ position = "bottom" })


mytasklist = {}
mytasklist.buttons = awful.util.table.join(
                    awful.button({ }, 1, function (c)
                                              if c == client.focus then
                                                  c.minimized = true
                                              else
                                                  -- Without this, the following
                                                  -- :isvisible() makes no sense
                                                  c.minimized = false
                                                  if not c:isvisible() then
                                                      awful.tag.viewonly(c:tags()[1])
                                                  end
                                                  -- This will also un-minimize
                                                  -- the client, if needed
                                                  client.focus = c
                                                  c:raise()
                                              end
                                          end),
                    awful.button({ }, 3, function ()
                                              if instance then
                                                  instance:hide()
                                                  instance = nil
                                              else
                                                  instance = awful.menu.clients({ width=250 })
                                              end
                                          end),
                    awful.button({ }, 4, function ()
                                              awful.client.focus.byidx(1)
                                              if client.focus then client.focus:raise() end
                                          end),
                    awful.button({ }, 5, function ()
                                              awful.client.focus.byidx(-1)
                                              if client.focus then client.focus:raise() end
                                          end))

for s = 1, screen.count() do
    -- Create a promptbox for each screen
    mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)

mywibox2:set_widget(mytasklist)
local layout2 = wibox.layout.align.horizontal()
layout2:set_middle(mytasklist)
mywibox2:set_widget(layout2)

end

Still, the bottom bar is lighter then the top bar.


All times are GMT -5. The time now is 09:55 PM.