mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-08 01:37:38 +08:00
Add new rule block for "needy" clients
Needy clients steal focus whenever they are urgent
This commit is contained in:
parent
aba5cb9b78
commit
045ea54d14
1 changed files with 19 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue