diff --git a/roles/lsd/files/colors.yaml b/roles/lsd/files/colors.yaml new file mode 100644 index 00000000..3fd1dd82 --- /dev/null +++ b/roles/lsd/files/colors.yaml @@ -0,0 +1,38 @@ +user: "#cba6f7" +group: "#b4befe" +permission: + read: "#a6e3a1" + write: "#f9e2af" + exec: "#eba0ac" + exec-sticky: "#cba6f7" + no-access: "#a6adc8" + octal: "#94e2d5" + acl: "#94e2d5" + context: "#89dceb" +date: + hour-old: "#94e2d5" + day-old: "#89dceb" + older: "#74c7ec" +size: + none: "#a6adc8" + small: "#a6e3a1" + medium: "#f9e2af" + large: "#fab387" +inode: + valid: "#f5c2e7" + invalid: "#a6adc8" +links: + valid: "#f5c2e7" + invalid: "#a6adc8" +tree-edge: "#bac2de" +git-status: + default: "#cdd6f4" + unmodified: "#a6adc8" + ignored: "#a6adc8" + new-in-index: "#a6e3a1" + new-in-workdir: "#a6e3a1" + typechange: "#f9e2af" + deleted: "#f38ba8" + renamed: "#a6e3a1" + modified: "#f9e2af" + conflicted: "#f38ba8" diff --git a/roles/lsd/files/config.yaml b/roles/lsd/files/config.yaml new file mode 100644 index 00000000..18ce741b --- /dev/null +++ b/roles/lsd/files/config.yaml @@ -0,0 +1,2 @@ +color: + theme: custom diff --git a/roles/lsd/tasks/main.yml b/roles/lsd/tasks/main.yml index 4e1c9095..040ab085 100644 --- a/roles/lsd/tasks/main.yml +++ b/roles/lsd/tasks/main.yml @@ -7,3 +7,21 @@ - name: "{{ role_name }} | Run Tasks: {{ ansible_distribution }}" ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml" when: distribution_config.stat.exists + +- name: "LSD | Ensure ~/.config/lsd exists" + ansible.builtin.file: + path: "{{ ansible_user_dir }}/.config/lsd" + state: directory + mode: "0755" + +- name: "LSD | Copy lsd config" + ansible.builtin.copy: + src: "config.yaml" + dest: "{{ ansible_user_dir }}/.config/lsd/config.yaml" + mode: "0644" + +- name: "LSD | Copy colors.yaml" + ansible.builtin.copy: + src: "colors.yaml" + dest: "{{ ansible_user_dir }}/.config/lsd/colors.yaml" + mode: "0644"