From 0882d14c74249817c525a82f99dcf8f26751f8a7 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Sat, 7 Apr 2018 17:55:19 -0700 Subject: [PATCH] make fonts configurable closes #77 --- group_vars/all | 25 +++++++++++++++++++++++++ roles/fonts/tasks/main.yml | 27 +++------------------------ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/group_vars/all b/group_vars/all index 1b8e93a..e2e63b0 100644 --- a/group_vars/all +++ b/group_vars/all @@ -217,3 +217,28 @@ gdm: touchpad: tap_to_click: True accessibility_menu: True + +base_fonts: + - terminus-font + - cantarell-fonts + - noto-fonts + - ttf-dejavu + - ttf-liberation + - ttf-symbola + - gsfonts + - tex-gyre-fonts + - ttf-droid + - ttf-ubuntu-font-family + - ttf-inconsolata + +aur_fonts: + - ttf-signika + - ttf-quintessential + - ttf-oswald + - ttf-opensans + - ttf-merriweather-sans + - ttf-merriweather + - ttf-carlito + - ttf-caladea + - ttf-courier-prime + - ttf-heuristica diff --git a/roles/fonts/tasks/main.yml b/roles/fonts/tasks/main.yml index 19e9945..b1e8412 100644 --- a/roles/fonts/tasks/main.yml +++ b/roles/fonts/tasks/main.yml @@ -26,33 +26,12 @@ - name: Push font substitutions copy: src=local.conf dest=/etc/fonts/local.conf -- name: Install core fonts +- name: Install base fonts pacman: name={{ item }} state=present - with_items: - - terminus-font - - cantarell-fonts - - noto-fonts - - ttf-dejavu - - ttf-liberation - - ttf-symbola - - gsfonts - - tex-gyre-fonts - - ttf-droid - - ttf-ubuntu-font-family - - ttf-inconsolata + with_items: "{{ base_fonts }}" - name: Install AUR fonts aur: name={{ item }} user={{ user.name }} - with_items: - - ttf-signika - - ttf-quintessential - - ttf-oswald - - ttf-opensans - - ttf-merriweather-sans - - ttf-merriweather - - ttf-carlito - - ttf-caladea - - ttf-courier-prime - - ttf-heuristica + with_items: "{{ aur_fonts }}" tags: - aur