From 045ea54d149ab7c576c9e516f859b05e38dfffd7 Mon Sep 17 00:00:00 2001 From: elenapan Date: Tue, 21 Apr 2020 18:33:24 +0300 Subject: [PATCH] Add new rule block for "needy" clients Needy clients steal focus whenever they are urgent --- config/awesome/rc.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index d43a74b..230eb45 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -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 = {