1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00

fix switch from font awesome 5 to 6 on arch only

This commit is contained in:
eoli3n 2022-02-15 11:34:33 +01:00
parent b528fd6586
commit d2521259c3
5 changed files with 12 additions and 3 deletions

@ -1,6 +1,7 @@
--- ---
font: jetbrains mono font: '"jetbrains mono"'
font_size: 10 font_size: 10
font_icon: '"FontAwesome5FreeRegular", "FontAwesome5FreeSolid", "FontAwesome5Brands"'
gtk_theme: Adwaita-dark gtk_theme: Adwaita-dark
icon_theme: Papirus-Dark icon_theme: Papirus-Dark
git_name: eoli3n git_name: eoli3n

@ -1,6 +1,9 @@
--- ---
- hosts: all - hosts: all
gather_facts: yes gather_facts: yes
tasks:
- include_tasks: tasks/fontawesome.yml
tags: [sway, waybar]
- hosts: cli:desktop - hosts: cli:desktop
roles: roles:

@ -15,7 +15,7 @@ input type:touchpad click_method clickfinger
set $mod Mod4 set $mod Mod4
# fonts # fonts
font pango: {{ font }}, FontAwesome5Free, FontAwesome5Brands 10 font pango: {{ font }}, {{ font_icon }} 10
# gaps # gaps
default_border none default_border none

@ -17,7 +17,7 @@
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
font-family: "{{ font }}", "Font Awesome 5 Free Regular", "Font Awesome 5 Free Solid", "Font Awesome 5 Brands"; font-family: {{ font }}, {{ font_icon }};
font-size: 12px; font-size: 12px;
box-shadow: none; box-shadow: none;
text-shadow: none; text-shadow: none;

5
tasks/fontawesome.yml Normal file

@ -0,0 +1,5 @@
---
- name: set font awesome to 6 if archlinux
set_fact:
font_icon: '"FontAwesome6FreeRegular", "FontAwesome6FreeSolid", "FontAwesome6Brands"'
when: ansible_distribution == 'Archlinux'