From 5bb4cb6d7138fcac012305b50f52ffd53f9bd2c2 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 14 Jan 2026 23:12:28 +0100 Subject: Add hyprtheme (based on omarchy themes) role with 2 themes --- roles/hyprtheme/tasks/template-theme.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 roles/hyprtheme/tasks/template-theme.yml (limited to 'roles/hyprtheme/tasks/template-theme.yml') 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" -- cgit v1.2.3