diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-03 23:29:04 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-04 00:09:07 +0100 |
| commit | 61d0ea9cb67c77bbcb587e3deebb40d511894c17 (patch) | |
| tree | 0a27a80204e1bf74616f32720c9823f42d42f571 /roles/tofi/tasks | |
| parent | a28abfae412d0f9391264f63df7223fc9107d300 (diff) | |
Add tofi launcher with theming
Diffstat (limited to 'roles/tofi/tasks')
| -rw-r--r-- | roles/tofi/tasks/main.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/roles/tofi/tasks/main.yml b/roles/tofi/tasks/main.yml new file mode 100644 index 00000000..56b24972 --- /dev/null +++ b/roles/tofi/tasks/main.yml @@ -0,0 +1,38 @@ +--- +- name: "Ensure tofi is installed" + become: true + become_user: "aur_builder" + kewlfft.aur.aur: + name: "tofi" + state: "present" + use: "yay" + +- name: "Create config directories" + become: true + ansible.builtin.file: + path: "{{ item }}" + state: "directory" + mode: "0755" + loop: + - "/etc/xdg/tofi" + - "{{ ansible_facts['env']['HOME'] }}/.config/tofi" + +- name: "Configure system defaults" + become: true + ansible.builtin.copy: + src: "config" + dest: "/etc/xdg/tofi/config" + mode: "0644" + +- name: "Configure user defaults" + ansible.builtin.blockinfile: + path: "{{ ansible_facts['env']['HOME'] }}/.config/tofi/config" + state: "present" + prepend_newline: true + append_newline: true + marker: "# ==== {mark} ANSIBLE TOFI CONFIG" + block: | + # System defaults + include = /etc/xdg/tofi/config + # Load Theme + include = ../hyprtheme/current/tofi.config |
