X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/0e0e5bb84ae7905b260c5c19afec28a084196099..e89f594db976b082f6970f96fb79c36bc014ea05:/.config/awesome/rc.lua?ds=inline diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 6996c7d..3322df2 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -582,10 +582,10 @@ client.add_signal("focus", function(c) awful.util.spawn("kill -CONT " .. c.pid) end end) +local capi = { timer = timer } client.add_signal("unfocus", function(c) - local capi = { timer = timer } + local timer_stop = capi.timer { timeout = 120 } if c.class == "Firefox" or c.class == "chromium" or c.class == "Icedove" then - local timer_stop = capi.timer { timeout = 120 } local send_sigstop = function () timer_stop:stop() if client.focus.pid ~= c.pid then