diff --git a/rsrcs/awesome/menu_conf.lua b/rsrcs/awesome/menu_conf.lua index 10bb43f..2ff46c3 100644 --- a/rsrcs/awesome/menu_conf.lua +++ b/rsrcs/awesome/menu_conf.lua @@ -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 }, diff --git a/rsrcs/awesome/rc.lua b/rsrcs/awesome/rc.lua index 6b0911c..4b874e7 100644 --- a/rsrcs/awesome/rc.lua +++ b/rsrcs/awesome/rc.lua @@ -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 - i = i + 1 - fileList[i] = filename - end - return fileList + local i, t, popen = 0, {}, io.popen + local pfile = popen('ls -a "'..directory..'"') + for filename in pfile:lines() do + i = i + 1 + t[i] = filename + end + pfile:close() + return t end - -- }}} -- configuration - edit to your liking diff --git a/users/nicholix.nix b/users/nicholix.nix index 2a228e5..8d3dda5 100644 --- a/users/nicholix.nix +++ b/users/nicholix.nix @@ -21,7 +21,12 @@ in { xsession = { enable = true; - windowManager.awesome.enable = true; + windowManager.awesome = { + enable = true; + luaModules = [ + pkgs.luaPackages.vicious + ]; + }; }; imports = [