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.

136 lines
3.3KB

  1. ---
  2. - name: eralitex directory
  3. file:
  4. path: "{{eralitex_directory}}"
  5. state: directory
  6. - name: profile directories
  7. file:
  8. path: "{{eralitex_directory}}/{{item}}"
  9. state: directory
  10. with_items: "{{ eralitex_profiles }}"
  11. - name: i3 config
  12. template:
  13. src: i3.config.j2
  14. dest: "{{eralitex_directory}}/{{item}}/i3.config"
  15. with_items: "{{ eralitex_profiles }}"
  16. - name: check i3 config
  17. command: i3 -c {{eralitex_directory}}/{{item}}/i3.config -C
  18. with_items: "{{ eralitex_profiles }}"
  19. changed_when: false
  20. - name: i3blocks config
  21. template:
  22. src: i3blocks.config.j2
  23. dest: "{{eralitex_directory}}/{{item}}/i3blocks.config"
  24. with_items: "{{ eralitex_profiles }}"
  25. - name: xsession scripts
  26. template:
  27. src: xsession.sh.j2
  28. dest: "{{eralitex_directory}}/{{item}}/xsession"
  29. mode: 0755
  30. with_items: "{{ eralitex_profiles }}"
  31. - name: session reload scripts
  32. template:
  33. src: reload.sh.j2
  34. dest: "{{eralitex_directory}}/{{item}}/reload"
  35. mode: 0755
  36. with_items: "{{ eralitex_profiles }}"
  37. - name: rofi themes
  38. template:
  39. src: rofi.theme.j2
  40. dest: "{{eralitex_directory}}/{{item}}/rofi.theme"
  41. mode: 0755
  42. with_items: "{{ eralitex_profiles }}"
  43. - name: Xmodmap
  44. template:
  45. src: Xmodmap.j2
  46. dest: "{{eralitex_directory}}/Xmodmap"
  47. - name: urxvt Xresources system config
  48. template:
  49. src: urxvt.Xresources.j2
  50. dest: "{{eralitex_directory}}/urxvt.Xresources"
  51. - name: eralitex bin directory
  52. copy:
  53. src: bin/
  54. dest: "{{eralitex_directory}}/bin/"
  55. mode: 0755
  56. - name: link selected profile as active
  57. file:
  58. dest: "{{eralitex_directory}}/active-profile"
  59. src: "{{eralitex_profile}}"
  60. state: link
  61. - name: link etx cli utility from users bin
  62. file:
  63. dest: ~/bin/etx
  64. src: "{{eralitex_directory}}/bin/etx"
  65. state: link
  66. - name: link selected profile as active
  67. file:
  68. dest: "{{eralitex_directory}}/active-profile"
  69. src: "{{eralitex_profile}}"
  70. state: link
  71. - name: background image directory
  72. file:
  73. path: "{{eralitex_directory}}/backgrounds"
  74. state: directory
  75. when: eralitex_background_image is defined
  76. - name: background image
  77. copy:
  78. src: "{{eralitex_background_image}}"
  79. dest: "{{eralitex_background_image_path}}"
  80. when: eralitex_background_image is defined
  81. - name: workspace-cmd directory
  82. file:
  83. path: "{{eralitex_directory}}/workspace-cmd"
  84. state: directory
  85. - name: other workspace focus script
  86. template:
  87. src: other-workspace-focus.fish.j2
  88. dest: ~/.eralitex/workspace-cmd/other-focus
  89. mode: 0755
  90. - name: remote workspace focus scripts
  91. template:
  92. src: remote-workspace-focus.fish.j2
  93. dest: ~/.eralitex/workspace-cmd/{{workspace}}.focus
  94. mode: 0755
  95. with_items: "{{workspaces|dict2items|json_query(\"[?value.type=='vdesk'].key\") }}"
  96. loop_control:
  97. loop_var: workspace
  98. when: home_remote_workspace_config
  99. - name: remote workspace space shortcut scripts
  100. template:
  101. src: remote-workspace-space.fish.j2
  102. dest: ~/.eralitex/workspace-cmd/{{workspace}}.space
  103. mode: 0755
  104. with_items: "{{workspaces|dict2items|json_query(\"[?value.type=='vdesk'||value.type=='tmux'].key\") }}"
  105. loop_control:
  106. loop_var: workspace
  107. when: home_remote_workspace_config
  108. - name: vnc options
  109. template:
  110. src: vnc-options.fish.j2
  111. dest: ~/.eralitex/workspace-cmd/vnc-options
  112. mode: 0755