Add new rule block for "needy" clients

Needy clients steal focus whenever they are urgent
This commit is contained in:
elenapan 2020-04-21 18:33:24 +03:00
parent aba5cb9b78
commit 045ea54d14

View file

@ -518,6 +518,25 @@ awful.rules.rules = {
properties = { titlebars_enabled = true },
},
-- "Needy": Clients that steal focus when they are urgent
{
rule_any = {
class = {
"TelegramDesktop",
},
type = {
"dialog",
},
},
callback = function (c)
c:connect_signal("property::urgent", function ()
if c.urgent then
c:jump_to()
end
end)
end
},
-- Fixed terminal geometry for floating terminals
{
rule_any = {