madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix timeout/timer scope
authormartin f. krafft <madduck@madduck.net>
Fri, 18 Mar 2016 10:30:07 +0000 (11:30 +0100)
committermartin f. krafft <madduck@madduck.net>
Fri, 18 Mar 2016 10:30:51 +0000 (11:30 +0100)
.config/awesome/rc.lua

index 6996c7d2a52648fa3f61f8de252d4f0a597fa9f8..3322df22654a5d77de6ff8a8bacaafcaee7959d4 100644 (file)
@@ -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