From a7e02d70fbdbfd833e8877b803385fc985f63378 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Fri, 17 Feb 2023 18:13:49 -0800 Subject: [PATCH] Fixed missing lua modules --- rsrcs/awesome/menu_conf.lua | 2 +- rsrcs/awesome/rc.lua | 15 ++++++++------- users/nicholix.nix | 7 ++++++- 3 files changed, 15 insertions(+), 9 deletions(-) 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 = [