summaryrefslogtreecommitdiffstats
path: root/roles/hyprtheme/tasks/main.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-01-14 23:12:28 +0100
committerAhmed Abdelhalim <[email protected]>2026-01-14 23:12:28 +0100
commit5bb4cb6d7138fcac012305b50f52ffd53f9bd2c2 (patch)
tree70a18261e4ed8e247293186348771582612b83d5 /roles/hyprtheme/tasks/main.yml
parent7986ef492d2ea651730bc0d1324e39f3d56276e5 (diff)
Add hyprtheme (based on omarchy themes) role with 2 themes
Diffstat (limited to 'roles/hyprtheme/tasks/main.yml')
-rw-r--r--roles/hyprtheme/tasks/main.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/roles/hyprtheme/tasks/main.yml b/roles/hyprtheme/tasks/main.yml
new file mode 100644
index 00000000..a3762b98
--- /dev/null
+++ b/roles/hyprtheme/tasks/main.yml
@@ -0,0 +1,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"