Add fontconfig and configure custom MonoFont fallback order

This commit is contained in:
Pavle Portic 2023-06-14 19:58:12 +02:00
parent 96f641b028
commit 3218c21c74
Signed by: TheEdgeOfRage
GPG Key ID: 66AD4BA646FBC0D2
3 changed files with 14 additions and 2 deletions

View File

@ -61,7 +61,7 @@ scrolling:
font:
# Normal (roman) font face
normal:
family: Pragmata Pro
family: MonoFont
style: Regular
size: {{ .alacritty.font.size }}

View File

@ -0,0 +1,12 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>MonoFont</family>
<prefer>
<family>Pragmata Pro</family>
<family>Font Awesome 6 Free Regular</family>
<family>Font Awesome 6 Brands Regular</family>
</prefer>
</alias>
</fontconfig>

View File

@ -33,7 +33,7 @@ set $right i
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:FontAwesome, Pragmata Pro {{ .i3.font_size }}
font pango:MonoFont {{ .i3.font_size }}
#class background border text split
client.focused $color8 $color8 $foreground $color7