diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 15e46516..f86f14bb 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -8,7 +8,7 @@ require("wibox") local beautiful = require("beautiful") -- Notification library local naughty = require("naughty") -require("menubar") +local menubar = require("menubar") -- {{{ Error handling -- Check if awesome encountered an error during startup and fell back to diff --git a/lib/menubar/init.lua.in b/lib/menubar/init.lua.in index 8eaaef77..5ae4fb2f 100644 --- a/lib/menubar/init.lua.in +++ b/lib/menubar/init.lua.in @@ -13,8 +13,6 @@ local capi = { local awful = require("awful") local common = require("awful.widget.common") local theme = require("beautiful") -local menu_gen = require("menubar.menu_gen") -local menu_utils = require("menubar.utils") local wibox = require("wibox") -- Standard lua @@ -26,7 +24,10 @@ local string = string local math = math local setmetatable = setmetatable -module("menubar") +-- menubar +local menubar = { mt = {} } +menubar.menu_gen = require("menubar.menu_gen") +menubar.utils = require("menubar.utils") --- List of menubar keybindings: --