diff --git a/init.lua b/init.lua index d96e65d..4b7b7c9 100644 --- a/init.lua +++ b/init.lua @@ -8,7 +8,7 @@ local longpress = require("awesome-longpress") local navbar = { iconSize = 96, iconPath = gears.filesystem.get_configuration_dir() .. "/awesome-navbar/", - navbar.launcher = "xfce4-appfinder" + launcher = "xfce4-appfinder" } function navbar.new(s) @@ -40,19 +40,19 @@ function navbar.new(s) awful.spawn(navbar.launcher) end) - local navbar = awful.wibar({ + local rnavbar = awful.wibar({ ontop = true, screen = s }) - function navbar.reflow() - position = landscape and "left" or "bottom", - height = (portrait and navbar.iconSize) or nil, - width = (landscape and navbar.iconSize) or nil, - navbar:setup({ + function rnavbar.reflow() + rnavbar.position = landscape and "left" or "bottom", + rnavbar.height = (portrait and navbar.iconSize) or nil, + rnavbar.width = (landscape and navbar.iconSize) or nil, + rnavbar:setup({ layout = landscape and wibox.layout.ratio.vertical or wibox.layout.ratio.horizontal, launcher_button, switcher_button, kb_button }) end - navbar.reflow() + rnavbar.reflow() s.keyboard = awful.wibar({ height = s.geometry.height * 0.25, @@ -68,5 +68,5 @@ function navbar.new(s) layout = wibox.layout.ratio.horizontal, vkbd }) - return navbar + return rnavbar end