mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-03 14:54:21 +02:00
i3-companion: make other browsers exclusive as well
This commit is contained in:
parent
696db29bc3
commit
c96c93ac02
1 changed files with 4 additions and 4 deletions
|
@ -100,8 +100,8 @@ icons = {
|
||||||
application_icons_nomatch = icon(2, "")
|
application_icons_nomatch = icon(2, "")
|
||||||
application_icons_ignore = {"dimmer"}
|
application_icons_ignore = {"dimmer"}
|
||||||
application_icons_alone = {application_icons[k] for k in {"vbeterm"}}
|
application_icons_alone = {application_icons[k] for k in {"vbeterm"}}
|
||||||
exclusive_apps = {"Emacs", "Firefox"}
|
exclusive_apps = {"emacs", "firefox", "chromium-browser", "google-chrome"}
|
||||||
intrusive_apps = {"Vbeterm"}
|
intrusive_apps = {"vbeterm"}
|
||||||
|
|
||||||
logger = logging.getLogger("i3-companion")
|
logger = logging.getLogger("i3-companion")
|
||||||
|
|
||||||
|
@ -418,7 +418,7 @@ async def workspace_exclusive(i3, event):
|
||||||
w = event.container
|
w = event.container
|
||||||
|
|
||||||
# Can the current window intrude the workspace?
|
# 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)
|
logger.debug("window %s can intrude", w.window_class)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -442,7 +442,7 @@ async def workspace_exclusive(i3, event):
|
||||||
for ow in tree.leaves()
|
for ow in tree.leaves()
|
||||||
if w.id != ow.id
|
if w.id != ow.id
|
||||||
and (w.window_class or object()) != ow.window_class
|
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
|
and not ow.sticky
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue