quake: allow to pass extra arguments
This commit is contained in:
parent
a3ad60919f
commit
4eec21ad8e
1 changed files with 16 additions and 15 deletions
|
@ -52,8 +52,8 @@ 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(self.app .. " " .. string.format(self.argname, self.name) ..
|
||||||
false, self.screen)
|
" " .. self.extra, false, self.screen)
|
||||||
self.notexist = true
|
self.notexist = true
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -98,6 +98,7 @@ function quake:new(config)
|
||||||
conf.app = conf.app or "xterm" -- application to spawn
|
conf.app = conf.app or "xterm" -- application to spawn
|
||||||
conf.name = conf.name or "QuakeDD" -- window name
|
conf.name = conf.name or "QuakeDD" -- window name
|
||||||
conf.argname = conf.argname or "-name %s" -- how to specify window name
|
conf.argname = conf.argname or "-name %s" -- how to specify window name
|
||||||
|
conf.extra = conf.extra or "" -- extra arguments
|
||||||
conf.visible = conf.visible or false -- initially not visible
|
conf.visible = conf.visible or false -- initially not visible
|
||||||
conf.screen = conf.screen or capi.mouse.screen
|
conf.screen = conf.screen or capi.mouse.screen
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue