#221 use string.format; wiki updated

This commit is contained in:
copycat-killer 2016-08-11 13:43:35 +02:00
parent 5584f20971
commit a659d1a4bc
3 changed files with 5 additions and 4 deletions

View File

@ -93,9 +93,9 @@ function helpers.newtimer(_name, timeout, fun, nostart)
local name = timeout
if not helpers.timer_table[name] then
helpers.timer_table[name] = capi.timer({ timeout = timeout })
helpers.timer_table[name]:start()
end
helpers.timer_table[name]:connect_signal("timeout", fun)
helpers.timer_table[name]:start()
if not nostart then
helpers.timer_table[name]:emit_signal("timeout")
end

View File

@ -52,8 +52,9 @@ function quake:display()
if not client then
-- The client does not exist, we spawn it
awful.util.spawn(self.app .. " " .. string.format(self.argname, self.name) ..
" " .. self.extra, false, self.screen)
awful.util.spawn(string.format("%s %s %s", self.app,
string.format(self.argname, self.name), self.extra),
false, self.screen)
self.notexist = true
return
end

2
wiki

@ -1 +1 @@
Subproject commit 380e58f33a5a092cf36072458f7a2a4d1b07698e
Subproject commit 8d62fdf794fe0d26802a7d0f7cf156e6b5b620f1