diff --git a/tasks/workspaces.yaml b/tasks/workspaces.yaml index b271fae..327f206 100644 --- a/tasks/workspaces.yaml +++ b/tasks/workspaces.yaml @@ -19,6 +19,6 @@ src: workspaces/workspace.space.fish.j2 dest: ~/.workspaces/{{workspace}}.space mode: 0755 - with_items: "{{workspaces|dict2items|json_query(\"[?value.type=='vdesk'||value.type=='tmux'].key\") }}" + with_items: "{{workspaces|dict2items|json_query(\"[?value.type=='vncviewer'||value.type=='tmux'].key\") }}" loop_control: loop_var: workspace diff --git a/templates/workspaces/workspace.space.fish.j2 b/templates/workspaces/workspace.space.fish.j2 index 024e7aa..de5241d 100644 --- a/templates/workspaces/workspace.space.fish.j2 +++ b/templates/workspaces/workspace.space.fish.j2 @@ -1,7 +1,7 @@ #!/usr/bin/fish {{ ansible_managed | comment }} -{% if workspaces[workspace].type == "vdesk" %} +{% if workspaces[workspace].type == "vncviewer" %} xtigervncviewer localhost:{{workspaces[workspace].display|default(home_vncserver_display_number)}} -via {{workspaces[workspace].host}} -PasswordFile ~/.vnc/passwd.{{workspaces[workspace].host}}