From 115f703928fc7b6ab2c591edcd025bab6c7a3ce8 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 15 Jan 2026 15:01:19 +0100 Subject: Add role meta and initial theme setup using default theme --- roles/hyprtheme/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'roles/hyprtheme/tasks') diff --git a/roles/hyprtheme/tasks/main.yml b/roles/hyprtheme/tasks/main.yml index cf1c4e35..7686df0d 100644 --- a/roles/hyprtheme/tasks/main.yml +++ b/roles/hyprtheme/tasks/main.yml @@ -43,3 +43,14 @@ loop: - "scripts/theme-set" - "scripts/theme-bg-next" + +- name: "Set default theme" + ansible.builtin.command: + # Running the command creates the symlinks for the current themes, using the hyprland.conf file to avoid rerunning + # This will run only if there is no current theme in place + # This will ignore the errors in the script, because the script restarts some hyprland services, which + # will fail on ssh connection, but having the theme files placed in the right directory will make sure that + # the first setup of hyprtheme is working and doesn't show errors on first boot + cmd: "{{ ansible_env.HOME }}/.config/hyprtheme/scripts/theme-set {{ hyprtheme_default_theme }}" + creates: "{{ ansible_env.HOME }}/.config/hyprtheme/current/hyprland.conf" + failed_when: false -- cgit v1.2.3