選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。

eralitex.yaml 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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: background image directory
  76. file:
  77. path: "{{eralitex_directory}}/backgrounds"
  78. state: directory
  79. when: eralitex_background_image is defined
  80. - name: background image
  81. copy:
  82. src: "{{eralitex_background_image}}"
  83. dest: "{{eralitex_background_image_path}}"
  84. when: eralitex_background_image is defined
  85. - name: workspace-cmd directory
  86. file:
  87. path: "{{eralitex_directory}}/workspace-cmd"
  88. state: directory
  89. - name: other workspace focus script
  90. template:
  91. src: other-workspace-focus.fish.j2
  92. dest: ~/.eralitex/workspace-cmd/other-focus
  93. mode: 0755
  94. - name: remote workspace focus scripts
  95. template:
  96. src: remote-workspace-focus.fish.j2
  97. dest: ~/.eralitex/workspace-cmd/{{workspace}}.focus
  98. mode: 0755
  99. with_items: "{{workspaces|dict2items|json_query(\"[?value.type=='vdesk'].key\") }}"
  100. loop_control:
  101. loop_var: workspace
  102. when: home_remote_workspace_config
  103. - name: remote workspace space shortcut scripts
  104. template:
  105. src: remote-workspace-space.fish.j2
  106. dest: ~/.eralitex/workspace-cmd/{{workspace}}.space
  107. mode: 0755
  108. with_items: "{{workspaces|dict2items|json_query(\"[?value.type=='vdesk'||value.type=='tmux'].key\") }}"
  109. loop_control:
  110. loop_var: workspace
  111. when: home_remote_workspace_config
  112. - name: vnc options
  113. template:
  114. src: vnc-options.fish.j2
  115. dest: ~/.eralitex/workspace-cmd/vnc-options
  116. mode: 0755
  117. - name: flush handlers
  118. meta: flush_handlers
  119. - name: enable and start eralitex vdesk user service
  120. systemd:
  121. name: eralitex@:16.service
  122. state: started
  123. enabled: true
  124. user: true
  125. when: home_eralitex_vdesk_started_and_enabled