From 34e67b25b988d2c479d1ec7e02f1ce7718c754b7 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Sun, 10 Oct 2021 03:30:13 -0400 Subject: implemented garbage collection to avoid memory leaks --- awesome/rc.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'awesome/rc.lua') diff --git a/awesome/rc.lua b/awesome/rc.lua index d0ec162..c72e60e 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -592,6 +592,13 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n -- Gaps beautiful.useless_gap = 5 +-- Run garbage collector regularly to prevent memory leaks +gears.timer { + timeout = 30, + autostart = true, + callback = function() collectgarbage() end +} + -- Autostart -- cgit v1.2.3