summaryrefslogtreecommitdiffstats
path: root/roles/hyprtheme/tasks/template-theme.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/template-theme.yml
parent7986ef492d2ea651730bc0d1324e39f3d56276e5 (diff)
Add hyprtheme (based on omarchy themes) role with 2 themes
Diffstat (limited to 'roles/hyprtheme/tasks/template-theme.yml')
-rw-r--r--roles/hyprtheme/tasks/template-theme.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/roles/hyprtheme/tasks/template-theme.yml b/roles/hyprtheme/tasks/template-theme.yml
new file mode 100644
index 00000000..bd94ce17
--- /dev/null
+++ b/roles/hyprtheme/tasks/template-theme.yml
@@ -0,0 +1,32 @@
+---
+- name: "Load theme variables"
+ ansible.builtin.include_vars: "vars/{{ theme_name }}.yml"
+
+- name: "Set theme files fact"
+ ansible.builtin.set_fact:
+ theme_files:
+ - "alacritty.toml"
+ - "btop.theme"
+ - "ghostty.conf"
+ - "hyprland.conf"
+ - "hyprlock.conf"
+ - "icons.theme"
+ - "kitty.conf"
+ - "swayosd.css"
+ - "walker.css"
+ - "waybar.css"
+
+- name: "Template theme files for: {{ theme_name }}"
+ ansible.builtin.template:
+ src: "theme/{{ file }}.j2"
+ dest: "{{ ansible_env.HOME }}/.config/hyprthemes/themes/{{ theme_name }}/{{ file }}"
+ mode: "0644"
+ loop: "{{ theme_files }}"
+ loop_control:
+ loop_var: file
+
+- name: "Copy static theme files for: {{ theme_name }}"
+ ansible.builtin.copy:
+ src: "themes/{{ theme_name }}/"
+ dest: "{{ ansible_env.HOME }}/.config/hyprthemes/themes/{{ theme_name }}/"
+ mode: "0644"