blob: a3762b98fd4cdc4fbd2e376726658985a69254f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
---
- name: "Set themes fact"
ansible.builtin.set_fact:
hyprthemes:
- "catppuccin"
- "everforest"
- name: "Create current theme directory"
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.config/hyprthemes/current"
state: "directory"
mode: "0755"
- name: "Create themes directory"
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.config/hyprthemes/themes/{{ item }}"
state: "directory"
mode: "0755"
loop: "{{ hyprthemes }}"
- name: "Create scripts directory"
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.config/hyprthemes/scripts"
state: "directory"
mode: "0755"
- name: "Template themes"
ansible.builtin.include_tasks: "template-theme.yml"
vars:
theme_name: "{{ item }}"
loop: "{{ hyprthemes }}"
- name: "Copy theme scripts"
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ ansible_env.HOME }}/.config/hyprthemes/{{ item }}"
mode: "0755"
loop:
- "scripts/theme-set"
- "scripts/theme-bg-next"
|