mirror of https://github.com/lcpz/lain.git
#221 use string.format; wiki updated
This commit is contained in:
parent
5584f20971
commit
a659d1a4bc
|
@ -93,9 +93,9 @@ function helpers.newtimer(_name, timeout, fun, nostart)
|
||||||
local name = timeout
|
local name = timeout
|
||||||
if not helpers.timer_table[name] then
|
if not helpers.timer_table[name] then
|
||||||
helpers.timer_table[name] = capi.timer({ timeout = timeout })
|
helpers.timer_table[name] = capi.timer({ timeout = timeout })
|
||||||
|
helpers.timer_table[name]:start()
|
||||||
end
|
end
|
||||||
helpers.timer_table[name]:connect_signal("timeout", fun)
|
helpers.timer_table[name]:connect_signal("timeout", fun)
|
||||||
helpers.timer_table[name]:start()
|
|
||||||
if not nostart then
|
if not nostart then
|
||||||
helpers.timer_table[name]:emit_signal("timeout")
|
helpers.timer_table[name]:emit_signal("timeout")
|
||||||
end
|
end
|
||||||
|
|
|
@ -52,8 +52,9 @@ function quake:display()
|
||||||
|
|
||||||
if not client then
|
if not client then
|
||||||
-- The client does not exist, we spawn it
|
-- The client does not exist, we spawn it
|
||||||
awful.util.spawn(self.app .. " " .. string.format(self.argname, self.name) ..
|
awful.util.spawn(string.format("%s %s %s", self.app,
|
||||||
" " .. self.extra, false, self.screen)
|
string.format(self.argname, self.name), self.extra),
|
||||||
|
false, self.screen)
|
||||||
self.notexist = true
|
self.notexist = true
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit 380e58f33a5a092cf36072458f7a2a4d1b07698e
|
Subproject commit 8d62fdf794fe0d26802a7d0f7cf156e6b5b620f1
|
Loading…
Reference in New Issue