Browse Source

workspace focus

pull/1/head
parent
commit
c0e6502b99
2 changed files with 6 additions and 1 deletions
  1. +1
    -1
      tasks/workspaces.yaml
  2. +5
    -0
      templates/workspaces/workspace.focus.fish.j2

+ 1
- 1
tasks/workspaces.yaml View File

@@ -17,7 +17,7 @@
src: workspaces/workspace.focus.fish.j2 src: workspaces/workspace.focus.fish.j2
dest: ~/.workspaces/{{workspace}}.focus dest: ~/.workspaces/{{workspace}}.focus
mode: 0755 mode: 0755
with_items: "{{workspaces|dict2items|json_query(\"[?value.type=='vncviewer'].key\") }}"
with_items: "{{ workspaces }}"
loop_control: loop_control:
loop_var: workspace loop_var: workspace




+ 5
- 0
templates/workspaces/workspace.focus.fish.j2 View File

@@ -1,6 +1,11 @@
#!/usr/bin/fish #!/usr/bin/fish
{{ ansible_managed | comment }} {{ ansible_managed | comment }}

{% if workspaces[workspace].type is defined %}
{% if workspaces[workspace].type == "vncviewer" %}
i3-msg mode remote i3-msg mode remote
{% endif %}
{% endif %}


{% if workspaces[workspace].activity is defined %} {% if workspaces[workspace].activity is defined %}
{% if workspaces[workspace].activity %} {% if workspaces[workspace].activity %}