aboutsummaryrefslogtreecommitdiff
path: root/awesome/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'awesome/rc.lua')
-rw-r--r--awesome/rc.lua7
1 files changed, 7 insertions, 0 deletions
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