convert everything to metatables and added rules

This commit is contained in:
Noella
2024-03-04 18:38:56 -07:00
parent 497a6bd76c
commit 1e248a903d
7 changed files with 212 additions and 158 deletions

View File

@@ -1,11 +1,21 @@
local _V = {}
local _M = {}
_V = {
terminal = "alacritty",
editor = os.getenv("EDITOR") or "nvim",
modkey = "Mod4",
wallpaper = os.getenv("HOME") .. "/.config/awesome/theme/background.jpg",
}
_V.editor_cmd = _V.terminal .. " -e " .. _V.editor
function _M.get()
local _V = {}
return _V
_V = {
terminal = "alacritty",
editor = os.getenv("EDITOR") or "nvim",
modkey = "Mod4",
wallpaper = os.getenv("HOME") .. "/.config/awesome/theme/background.jpg",
}
_V.editor_cmd = _V.terminal .. " -e " .. _V.editor
return _V
end
return setmetatable({}, {
__call = function(_, ...)
return _M.get(...)
end,
})