blob: 05456852bada3c1def61f126803125b47af9fe9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
---
- name: "Ensure mako is installed"
become: true
ansible.builtin.package:
name:
- "libnotify"
- "mako"
state: "present"
- name: "Create config directories"
become: true
ansible.builtin.file:
path: "{{ item }}"
state: "directory"
mode: "0755"
loop:
- "/etc/xdg/mako"
- "{{ ansible_facts['env']['HOME'] }}/.config/mako"
- name: "Configure system defaults"
become: true
ansible.builtin.template:
src: "mako/config.j2"
dest: "/etc/xdg/mako/config"
mode: "0644"
- name: "Configure user defaults"
ansible.builtin.blockinfile:
path: "{{ ansible_facts['env']['HOME'] }}/.config/mako/config"
state: "present"
prepend_newline: true
append_newline: true
marker: "# ==== {mark} ANSIBLE MAKO CONFIG"
block: |
# Include Theme colors (must come first)
include={{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/current/mako.ini
# System defaults
include=/etc/xdg/mako/config
|