material-shell / material-awesome

Material and Mouse driven config for AwesomeWM 4.3
MIT License
686 stars 243 forks source link

how to remove the top-panel to bottom #39

Closed yoyothomas closed 5 years ago

yoyothomas commented 5 years ago

i can not find like (string : Either “left”, right", “top” or “bottom”)string = "top"

PapyElGringo commented 5 years ago

It's because the top bar is positioned with coordinates !

in layout/top-panel.lua

local panel =
    wibox(
    {
      ontop = true,
      screen = s,
      height = dpi(48),
      width = s.geometry.width - offsetx,
      x = s.geometry.x + offsetx,
      y = s.geometry.y,
      stretch = false,
      bg = beautiful.background.hue_800,
      fg = beautiful.fg_normal,
      struts = {
        top = dpi(48)
      }
    }
  )

You want to change the y = s.geometry.y to something like y = s.geometry.y + s.geometry.height - dpi(48)