You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

workspaces.yaml 974B

4 年之前
4 年之前
2 年之前
4 年之前
2 年之前
4 年之前
3 年之前
4 年之前
2 年之前
4 年之前
4 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---
  2. - name: workspace app service
  3. template:
  4. src: workspaces/workspace-app.service.j2
  5. dest: ~/.config/systemd/user/workspace-app@.service
  6. mode: 0755
  7. notify: systemd daemon-reload
  8. - name: workspaces directory
  9. file:
  10. path: ~/.workspaces
  11. state: directory
  12. - name: workspace directory
  13. file:
  14. path: ~/.workspaces/{{workspace}}
  15. state: directory
  16. with_items: "{{ workspaces }}"
  17. loop_control:
  18. loop_var: workspace
  19. - name: workspace focus scripts
  20. template:
  21. src: workspaces/workspace.focus.fish.j2
  22. dest: ~/.workspaces/{{workspace}}/focus
  23. mode: 0755
  24. with_items: "{{ workspaces }}"
  25. loop_control:
  26. loop_var: workspace
  27. - name: workspace space shortcut scripts
  28. template:
  29. src: workspaces/workspace.space.fish.j2
  30. dest: ~/.workspaces/{{workspace}}/space
  31. mode: 0755
  32. with_items: "{{ workspaces }}"
  33. loop_control:
  34. loop_var: workspace
  35. when:
  36. - workspaces[workspace]
  37. - '"type" in workspaces[workspace]'