mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-23 12:24:38 +02:00
i3: try to make it work with Zoom
Zoom is trying very hard to break all existing X11 conventions. Let's try to make it work anyway.
This commit is contained in:
parent
82bdb24732
commit
8b891bbf8d
2 changed files with 17 additions and 5 deletions
|
@ -84,7 +84,7 @@ application_icons = {
|
|||
"wireshark": icon(2, ""),
|
||||
"zathura": icon(2, ""),
|
||||
"zoom": icon(2, ""),
|
||||
"zoom.real ": icon(2, ""),
|
||||
"zoom.real": icon(2, ""),
|
||||
}
|
||||
icons = {
|
||||
"access-point": icon(2, ""),
|
||||
|
@ -354,6 +354,12 @@ async def workspace_rename(i3, event):
|
|||
if cls in application_icons_ignore:
|
||||
continue
|
||||
icon = application_icons.get(cls, application_icons.get(cls.split("-")[0]))
|
||||
if icon is None:
|
||||
# Zoom (😱)
|
||||
if (window.window_title or "").startswith("Zoom") or (
|
||||
window.window_instance or ""
|
||||
).startswith(("start?action=start", "join?action=join")):
|
||||
icon = application_icons["zoom"]
|
||||
icons.add(icon or application_icons_nomatch)
|
||||
if any([i not in application_icons_alone for i in icons]):
|
||||
icons -= application_icons_alone
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue