From: Quan Guo Date: Thu, 1 Oct 2015 22:38:40 +0000 (+0200) Subject: New timer X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/3c52f47f46762525b6c7d071ca0e494078036bc2 New timer --- diff --git a/helpers.lua b/helpers.lua index 4e90e16..70ca029 100644 --- a/helpers.lua +++ b/helpers.lua @@ -8,7 +8,7 @@ local debug = require("debug") -local capi = { timer = timer } +local capi = { timer = (type(timer) == 'table' and timer or require ("gears.timer")) } local io = { open = io.open, lines = io.lines, popen = io.popen }