From 0230504c0df64cfc78754da74027cddacc088e50 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Fri, 20 Jan 2023 18:02:18 +0100 Subject: [PATCH] configure emoji support --- roles/alacritty/files/font.conf | 11 +++++++++++ roles/alacritty/tasks/main.yml | 13 ++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 roles/alacritty/files/font.conf diff --git a/roles/alacritty/files/font.conf b/roles/alacritty/files/font.conf new file mode 100644 index 0000000..1d1d898 --- /dev/null +++ b/roles/alacritty/files/font.conf @@ -0,0 +1,11 @@ + + + + + monospace + + DejaVu Sans Mono + Noto Color Emoji + + + diff --git a/roles/alacritty/tasks/main.yml b/roles/alacritty/tasks/main.yml index 13da5c6..7d4d75f 100644 --- a/roles/alacritty/tasks/main.yml +++ b/roles/alacritty/tasks/main.yml @@ -17,7 +17,9 @@ - name: Install Alacritty become: true apt: - name: alacritty + pkg: + - alacritty + - fonts-noto-color-emoji - name: Create Alacritty config directory file: path: ~/.config/alacritty @@ -26,3 +28,12 @@ copy: src: "{{ role_path }}/files/alacritty.yml" dest: ~/.config/alacritty/alacritty.yml +- name: Create fontconfig directory + file: + path: ~/.config/fontconfig + state: directory + recurse: true +- name: Copy font.conf + copy: + src: "{{ role_path }}/files/font.conf" + dest: ~/.config/fontconfig/font.conf