mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 11:18:33 +02:00
quake: add an exception of the setslave rule
Otherwise, we get focus problems...
This commit is contained in:
parent
b031b9b62b
commit
f2883707a1
2 changed files with 9 additions and 1 deletions
|
@ -21,6 +21,11 @@
|
||||||
-- awful.key({ modkey }, "`",
|
-- awful.key({ modkey }, "`",
|
||||||
-- function () quakeconsole[mouse.screen]:toggle() end)
|
-- function () quakeconsole[mouse.screen]:toggle() end)
|
||||||
|
|
||||||
|
-- If you have a rule like "awful.client.setslave" for your terminals,
|
||||||
|
-- ensure you use an exception for
|
||||||
|
-- QuakeConsoleNeedsUniqueName. Otherwise, you may run into problems
|
||||||
|
-- with focus.
|
||||||
|
|
||||||
local setmetatable = setmetatable
|
local setmetatable = setmetatable
|
||||||
local string = string
|
local string = string
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
|
@ -94,6 +99,7 @@ function QuakeConsole:display()
|
||||||
client.above = true
|
client.above = true
|
||||||
client.skip_taskbar = true
|
client.skip_taskbar = true
|
||||||
client.sticky = true
|
client.sticky = true
|
||||||
|
client.
|
||||||
|
|
||||||
-- Toggle display
|
-- Toggle display
|
||||||
if self.visible then
|
if self.visible then
|
||||||
|
|
|
@ -30,5 +30,7 @@ awful.rules.rules = {
|
||||||
"Transmission-gtk",
|
"Transmission-gtk",
|
||||||
"Keepassx",
|
"Keepassx",
|
||||||
} },
|
} },
|
||||||
properties = { }, callback = awful.client.setslave },
|
except = { icon_name = "QuakeConsoleNeedsUniqueName" },
|
||||||
|
properties = { },
|
||||||
|
callback = awful.client.setslave },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue