mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 10:18:34 +02:00
quake: if quake console is closed, mark it as not visible
This commit is contained in:
parent
3b3dd0863d
commit
8e2afdd778
2 changed files with 8 additions and 2 deletions
|
@ -127,10 +127,16 @@ function QuakeConsole:new(config)
|
||||||
local console = setmetatable(config, { __index = QuakeConsole })
|
local console = setmetatable(config, { __index = QuakeConsole })
|
||||||
capi.client.add_signal("manage",
|
capi.client.add_signal("manage",
|
||||||
function(c)
|
function(c)
|
||||||
if c.name == console.name and c.screen == console.screen then
|
if c.icon_name == console.name and c.screen == console.screen then
|
||||||
console:display()
|
console:display()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
capi.client.add_signal("unmanage",
|
||||||
|
function(c)
|
||||||
|
if c.icon_name == console.name and c.screen == console.screen then
|
||||||
|
console.visible = false
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
local reattach = capi.timer { timeout = 0 }
|
local reattach = capi.timer { timeout = 0 }
|
||||||
reattach:add_signal("timeout",
|
reattach:add_signal("timeout",
|
||||||
|
|
|
@ -19,7 +19,7 @@ local function client_info()
|
||||||
|
|
||||||
local inf = {
|
local inf = {
|
||||||
"name", "icon_name", "type", "class", "role", "instance", "pid",
|
"name", "icon_name", "type", "class", "role", "instance", "pid",
|
||||||
"icon_name", "skip_taskbar", "id", "group_window", "leader_id", "machine",
|
"skip_taskbar", "id", "group_window", "leader_id", "machine",
|
||||||
"screen", "hidden", "minimized", "size_hints_honor", "titlebar", "urgent",
|
"screen", "hidden", "minimized", "size_hints_honor", "titlebar", "urgent",
|
||||||
"focus", "opacity", "ontop", "above", "below", "fullscreen", "transient_for",
|
"focus", "opacity", "ontop", "above", "below", "fullscreen", "transient_for",
|
||||||
"maximixed_horizontal", "maximixed_vertical", "sticky", "modal", "focusable"
|
"maximixed_horizontal", "maximixed_vertical", "sticky", "modal", "focusable"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue