add garbage collection timer

This commit is contained in:
Izaya 2022-09-07 09:53:13 +10:00
parent 03ccc408b0
commit 60372b458f
1 changed files with 8 additions and 0 deletions

8
rc.lua
View File

@ -181,6 +181,14 @@ client.connect_signal("mouse::enter", function(c)
end)
-- }}}
-- timer to run Lua garbage collection
-- may not be necessary, but just in case
gears.timer.start_new(60, function()
collectgarbage("step",1024)
return true
end)
-- run autostart script, either from home folder or system copy
if gears.filesystem.file_readable(string.format("%s/.config/awesome-mobile/autostart.sh",os.getenv("HOME"))) then
awful.spawn(gears.filesystem.file_readable(string.format("%s/.config/awesome-mobile/autostart.sh",os.getenv("HOME"))))
else