From 75e52b5e2e7437d154d3a0188fbf296b45a7a237 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 1 Aug 2022 23:29:51 -0400 Subject: [PATCH] feat(role): add fonts Add and use JetBrains Mono. --- roles/alacritty/files/alacritty.yml | 2 +- roles/fonts/tasks/main.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 roles/fonts/tasks/main.yaml diff --git a/roles/alacritty/files/alacritty.yml b/roles/alacritty/files/alacritty.yml index 2d6f044..95c3b91 100644 --- a/roles/alacritty/files/alacritty.yml +++ b/roles/alacritty/files/alacritty.yml @@ -4,7 +4,7 @@ window: font: normal: - family: MesloLGM Nerd Font Mono + family: JetBrainsMono Nerd Font Mono style: Regular bold: style: Regular diff --git a/roles/fonts/tasks/main.yaml b/roles/fonts/tasks/main.yaml new file mode 100644 index 0000000..50fc8f2 --- /dev/null +++ b/roles/fonts/tasks/main.yaml @@ -0,0 +1,14 @@ +--- +- name: Download + ansible.builtin.get_url: + dest: "{{ font_item.dest }}" + url: "{{ font_item.url }}" + loop_control: + loop_var: font_item + loop: + - url: "https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/JetBrainsMono/Ligatures/Regular/complete/JetBrains%20Mono%20Regular%20Nerd%20Font%20Complete%20Mono.ttf?raw=true" + dest: /usr/share/fonts/truetype/JetBrainsMono Nerd Font Regular + + - url: "https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/JetBrainsMono/Ligatures/Italic/complete/JetBrains%20Mono%20Italic%20Nerd%20Font%20Complete%20Mono.ttf?raw=true" + dest: /usr/share/fonts/truetype/JetBrainsMono Nerd Font Italic + become: true