mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-26 19:58:35 +02:00
quake: let use role if we cannot set name
Some terminals do not allow to set name (like xfce4-terminal). In this case, use the role.
This commit is contained in:
parent
4134170f6c
commit
a92e68eb4d
2 changed files with 4 additions and 3 deletions
|
@ -46,7 +46,7 @@ function QuakeConsole:display()
|
|||
local i = 0
|
||||
for c in awful.client.cycle(function (c)
|
||||
-- c.name may be changed!
|
||||
return c.instance == self.name
|
||||
return (c.instance == self.name or c.role == self.name)
|
||||
end,
|
||||
nil, self.screen) do
|
||||
i = i + 1
|
||||
|
@ -137,13 +137,13 @@ function QuakeConsole:new(config)
|
|||
local console = setmetatable(config, { __index = QuakeConsole })
|
||||
capi.client.add_signal("manage",
|
||||
function(c)
|
||||
if c.instance == console.name and c.screen == console.screen then
|
||||
if (c.instance == console.name or c.role == console.name) and c.screen == console.screen then
|
||||
console:display()
|
||||
end
|
||||
end)
|
||||
capi.client.add_signal("unmanage",
|
||||
function(c)
|
||||
if c.instance == console.name and c.screen == console.screen then
|
||||
if (c.instance == console.name or c.role == console.name) and c.screen == console.screen then
|
||||
console.visible = false
|
||||
end
|
||||
end)
|
||||
|
|
|
@ -3,6 +3,7 @@ local quake = loadrc("quake", "vbe/quake")
|
|||
local quakeconsole = {}
|
||||
for s = 1, screen.count() do
|
||||
quakeconsole[s] = quake({ terminal = config.terminal,
|
||||
argname = "--role %s",
|
||||
height = 0.3,
|
||||
screen = s })
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue