lain/widget/init.lua

25 lines
546 B
Lua
Raw Normal View History

2013-09-07 12:06:42 +02:00
--[[
Lain
Layouts, widgets and utilities for Awesome WM
Widgets section
Licensed under GNU General Public License v2
* (c) 2013, Luca CPZ
* (c) 2010-2012, Peter Hofmann
2013-09-07 12:06:42 +02:00
--]]
local requirePrefix = tostring(...):match(".*lain") or ""
if requirePrefix then
requirePrefix = requirePrefix .. "."
end
local wrequire = require(requirePrefix .. "helpers").wrequire
2013-09-07 12:06:42 +02:00
local setmetatable = setmetatable
local widget = { _NAME = requirePrefix .. "widget" }
2013-09-07 12:06:42 +02:00
2017-02-08 20:45:11 +01:00
return setmetatable(widget, { __index = wrequire })