summaryrefslogtreecommitdiffstats
path: root/roles/hyprtheme/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-01-31 15:39:55 +0100
committerAhmed Abdelhalim <[email protected]>2026-01-31 15:39:55 +0100
commit7272755bc3c397179197cf03c60704e10165a1f3 (patch)
tree35af1dccafd91d63b44c0bd1295a4a62159081c0 /roles/hyprtheme/tasks
parent74181a7572ef087279a78e0046a161049f0d70c6 (diff)
Allow configuring the themes to install
Diffstat (limited to 'roles/hyprtheme/tasks')
-rw-r--r--roles/hyprtheme/tasks/main.yml15
1 files changed, 2 insertions, 13 deletions
diff --git a/roles/hyprtheme/tasks/main.yml b/roles/hyprtheme/tasks/main.yml
index 44d2b60d..06640c49 100644
--- a/roles/hyprtheme/tasks/main.yml
+++ b/roles/hyprtheme/tasks/main.yml
@@ -1,15 +1,4 @@
---
-- name: "Set themes fact"
- ansible.builtin.set_fact:
- hyprtheme_themes:
- - "catppuccin"
- - "everforest"
- - "gruvbox"
- - "matte-black"
- - "osaka-jade"
- - "ristretto"
- - "tokyo-night"
-
- name: "Create current theme directory"
ansible.builtin.file:
path: "{{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/current"
@@ -21,7 +10,7 @@
path: "{{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/themes/{{ item }}"
state: "directory"
mode: "0755"
- loop: "{{ hyprtheme_themes }}"
+ loop: "{{ hyprtheme_themes_to_install }}"
- name: "Create scripts directory"
ansible.builtin.file:
@@ -33,7 +22,7 @@
ansible.builtin.include_tasks: "template-theme.yml"
vars:
hyprtheme_name: "{{ item }}"
- loop: "{{ hyprtheme_themes }}"
+ loop: "{{ hyprtheme_themes_to_install }}"
- name: "Copy theme scripts"
ansible.builtin.copy: