Fixed missing lua modules

This commit is contained in:
Nickiel12 2023-02-17 18:13:49 -08:00
parent 6f105dea97
commit a7e02d70fb
3 changed files with 15 additions and 9 deletions

View file

@ -30,7 +30,7 @@ menu_conf.init = function(
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
-- { "quit", function() awesome.quit() end },
{ "quit", function() awesome.quit() end },
}
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },

View file

@ -57,14 +57,15 @@ beautiful.init(string.format("%s/.config/awesome/themes/%s/theme.lua", os.getenv
-- scan directory, and optionally filter outputs
function scandir(directory)
local i, fileList, popen = 0, {}, io.popen
for filename in popen([[find "]] ..directory.. [[" -type f]]):lines() do
local i, t, popen = 0, {}, io.popen
local pfile = popen('ls -a "'..directory..'"')
for filename in pfile:lines() do
i = i + 1
fileList[i] = filename
t[i] = filename
end
return fileList
pfile:close()
return t
end
-- }}}
-- configuration - edit to your liking

View file

@ -21,7 +21,12 @@ in
{
xsession = {
enable = true;
windowManager.awesome.enable = true;
windowManager.awesome = {
enable = true;
luaModules = [
pkgs.luaPackages.vicious
];
};
};
imports = [