From 457366832ba1672f24a2ed02e29164c6e5e0ec5f Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sun, 10 Jan 2021 18:10:34 +0100 Subject: [PATCH] let assignments work with all versions of tigervnc --- templates/i3/i3.config.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/i3/i3.config.j2 b/templates/i3/i3.config.j2 index a28dd74..8bb5b84 100644 --- a/templates/i3/i3.config.j2 +++ b/templates/i3/i3.config.j2 @@ -385,8 +385,7 @@ focus_on_window_activation urgent ### Application specific rule -for_window [class="^Vncviewer$"] border none -for_window [class="^TigerVNC Viewer$"] border none +for_window [class="^(?:Tiger)?V[Nn][Cc] ?[Vv]iewer$"] border none for_window [window_role="^About$"] floating enable for_window [class="^Pavu"] floating enable for_window [class="^Paman$"] floating enable @@ -402,7 +401,7 @@ assign [class="^thunderbird$"] → mail # vncviewer workspaces {% for workspace in workspaces|dict2items|json_query("[?value.type=='vncviewer'].key") %} {% set ws = workspaces[workspace] %} -assign [class="^Vncviewer$" title="^{{ws.host}}:"] → {{workspace}} +assign [class="^(?:Tiger)?V[Nn][Cc] ?[Vv]iewer$" title="^{{ws.host}}:"] → {{workspace}} {% endfor %} ### Autostart