From c96c93ac0238fd5bba5458492e36398e214cb115 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 6 Aug 2021 08:07:58 +0200 Subject: [PATCH] i3-companion: make other browsers exclusive as well --- bin/i3-companion | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/i3-companion b/bin/i3-companion index e51d720..9fc6741 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -100,8 +100,8 @@ icons = { application_icons_nomatch = icon(2, "") application_icons_ignore = {"dimmer"} application_icons_alone = {application_icons[k] for k in {"vbeterm"}} -exclusive_apps = {"Emacs", "Firefox"} -intrusive_apps = {"Vbeterm"} +exclusive_apps = {"emacs", "firefox", "chromium-browser", "google-chrome"} +intrusive_apps = {"vbeterm"} logger = logging.getLogger("i3-companion") @@ -418,7 +418,7 @@ async def workspace_exclusive(i3, event): w = event.container # Can the current window intrude the workspace? - if w.floating in {"auto_on", "user_on"} or w.window_class in intrusive_apps: + if w.floating in {"auto_on", "user_on"} or w.window_class.lower in intrusive_apps: logger.debug("window %s can intrude", w.window_class) return @@ -442,7 +442,7 @@ async def workspace_exclusive(i3, event): for ow in tree.leaves() if w.id != ow.id and (w.window_class or object()) != ow.window_class - and ow.window_class in exclusive_apps + and ow.window_class.lower() in exclusive_apps and not ow.sticky }