瀏覽代碼

let assignments work with all versions of tigervnc

timer
父節點
當前提交
457366832b
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. +2
    -3
      templates/i3/i3.config.j2

+ 2
- 3
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