You are not logged in.

#1 2021-11-17 05:06:58

desperado
Member
Registered: 2018-10-12
Posts: 59

Awesomewm - use plank as taskbar instead of wibar

I've used openbox and awesomewm. When running plank with openbox, everything works as expected, but with awesomewm, clicking the task icons on plank doesn't minimize the corresponding windows.

I'm assuming something needs to be added. I've seen awesome's config file and it contains the code which handles the minimizing when wibar is used.

local tasklist_buttons = gears.table.join(
                     awful.button({ }, 1, function (c)
                                              if c == client.focus then
                                                  c.minimized = true
                                              else
                                                  c:emit_signal(
                                                      "request::activate",
                                                      "tasklist",
                                                      {raise = true}
                                                  )
                                              end
                                          end),
                     awful.button({ }, 3, function()
                                              awful.menu.client_list({ theme = { width = 250 } })
                                          end),
                     awful.button({ }, 4, function ()
                                              awful.client.focus.byidx(1)
                                          end),
                     awful.button({ }, 5, function ()
                                              awful.client.focus.byidx(-1)
                                          end))

I need this to work with plank instead of wibar. Help a fellow awesomewm user out?

Awesome has utilities to handle events, but I don't know which event it is.

Last edited by desperado (2021-11-17 05:09:22)

Offline

Board footer

Powered by FluxBB