add garbage collection timer
This commit is contained in:
parent
03ccc408b0
commit
60372b458f
8
rc.lua
8
rc.lua
@ -181,6 +181,14 @@ client.connect_signal("mouse::enter", function(c)
|
|||||||
end)
|
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
|
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"))))
|
awful.spawn(gears.filesystem.file_readable(string.format("%s/.config/awesome-mobile/autostart.sh",os.getenv("HOME"))))
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user