From ba11cb9782e57f197a58cb54f6f4a8b85addb722 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Fri, 21 Oct 2022 23:23:24 -0700 Subject: [PATCH] Set up font fallthrough for emoji We set up a fonts.conf to specify Bitstream Vera for all my font preferences with a fallback to the Noto Color Emoji. This should standardize font/emoji support and my method falls back to system fontconfig if these aren't font. Then we swap alacritty and sway to monospace. --- .config/alacritty/alacritty.yml | 2 +- .config/fontconfig/fonts.conf | 32 ++++++++++++++++++++++++++++++++ .config/sway/config | 4 ++-- 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 .config/fontconfig/fonts.conf diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 85d544f..4e7d446 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -117,7 +117,7 @@ font: # - (macOS) Menlo # - (Linux/BSD) monospace # - (Windows) Consolas - family: DejaVu Sans Mono + family: monospace # The `style` can be specified to pick a specific face. #style: Regular diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf new file mode 100644 index 0000000..a34f383 --- /dev/null +++ b/.config/fontconfig/fonts.conf @@ -0,0 +1,32 @@ + + + + + + + sans-serif + + + Bitstream Vera Sans + Noto Color Emoji + + + + + serif + + + Bitstream Vera Serif + Noto Color Emoji + + + + + monospace + + + Bitstream Vera Sans Mono + Noto Color Emoji + + + diff --git a/.config/sway/config b/.config/sway/config index 9479dda..0047e2e 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -19,7 +19,7 @@ set $base0F #a16946 # %%base16_template_end%% # Global font config -font pango:DejaVu Sans Mono 11 +font pango:monospace 11 # Property Name Border BG Text Indicator Child Border client.focused $base00 $base02 $base05 $base0D $base02 @@ -38,7 +38,7 @@ bar { status_command "~/bin/statusbar" position bottom - font pango:DejaVu Sans Mono 11 + font pango:monospace 11 colors { background $base00