您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

156 行
3.7KB

  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: vdesk user service
  62. template:
  63. src: eralitex-vdesk.service.j2
  64. dest: ~/.config/systemd/user/eralitex@.service
  65. - name: link etx cli utility from users bin
  66. file:
  67. dest: ~/bin/etx
  68. src: "{{eralitex_directory}}/bin/etx"
  69. state: link
  70. - name: link selected profile as active
  71. file:
  72. dest: "{{eralitex_directory}}/active-profile"
  73. src: "{{eralitex_profile}}"
  74. state: link
  75. - name: points counter
  76. copy:
  77. content: 0
  78. dest: "{{eralitex_directory}}/points"
  79. force: no
  80. - name: background image directory
  81. file:
  82. path: "{{eralitex_directory}}/backgrounds"
  83. state: directory
  84. when: eralitex_background_image is defined
  85. - name: background image
  86. copy:
  87. src: "{{eralitex_background_image}}"
  88. dest: "{{eralitex_background_image_path}}"
  89. when: eralitex_background_image is defined
  90. - name: workspace-cmd directory
  91. file:
  92. path: "{{eralitex_directory}}/workspace-cmd"
  93. state: directory
  94. - name: other workspace focus script
  95. template:
  96. src: other-workspace-focus.fish.j2
  97. dest: ~/.eralitex/workspace-cmd/other-focus
  98. mode: 0755
  99. - name: remote workspace focus scripts
  100. template:
  101. src: remote-workspace-focus.fish.j2
  102. dest: ~/.eralitex/workspace-cmd/{{workspace}}.focus
  103. mode: 0755
  104. with_items: "{{workspaces|dict2items|json_query(\"[?value.type=='vdesk'].key\") }}"
  105. loop_control:
  106. loop_var: workspace
  107. when: home_remote_workspace_config
  108. - name: remote workspace space shortcut scripts
  109. template:
  110. src: remote-workspace-space.fish.j2
  111. dest: ~/.eralitex/workspace-cmd/{{workspace}}.space
  112. mode: 0755
  113. with_items: "{{workspaces|dict2items|json_query(\"[?value.type=='vdesk'||value.type=='tmux'].key\") }}"
  114. loop_control:
  115. loop_var: workspace
  116. when: home_remote_workspace_config
  117. - name: vnc options
  118. template:
  119. src: vnc-options.fish.j2
  120. dest: ~/.eralitex/workspace-cmd/vnc-options
  121. mode: 0755
  122. - name: flush handlers
  123. meta: flush_handlers
  124. - name: enable and start eralitex vdesk user service
  125. systemd:
  126. name: eralitex@:16.service
  127. state: started
  128. enabled: true
  129. user: true
  130. when: home_eralitex_vdesk_started_and_enabled