From 87d015bbbfb9e9c706e81e85f1f953e5d438387a Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Wed, 7 Apr 2021 16:21:47 +0200 Subject: [PATCH] Att host-specific terminal font settings --- tree/.config/alacritty/alacritty.yml.tpl | 48 +++++++++++++++++------- 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/tree/.config/alacritty/alacritty.yml.tpl b/tree/.config/alacritty/alacritty.yml.tpl index dc9e8cb..8f26cc4 100644 --- a/tree/.config/alacritty/alacritty.yml.tpl +++ b/tree/.config/alacritty/alacritty.yml.tpl @@ -31,26 +31,48 @@ draw_bold_text_with_bright_colors: true # Font configuration (changes require restart) font: - # The normal (roman) font face to use. normal: - family: Source Code Pro for Powerline # "Menlo" or something on macOS. - # Style can be specified to pick a specific face. - # style: Regular +{% if hostname == 'sputnik' %} + family: SauceCodePro Nerd Font +{% else if hostname == 'vostok' %} + family: Source Code Pro for Powerline +{% else %} + family: monospace +{% end if %} + + style: Regular - # The bold font face bold: - family: Source Code Pro for Powerline # should be "Menlo" or something on macOS. - # Style can be specified to pick a specific face. - # style: Bold +{% if hostname == 'sputnik' %} + family: SauceCodePro Nerd Font +{% else if hostname == 'vostok' %} + family: Source Code Pro for Powerline +{% else %} + family: monospace +{% end if %} + + style: Bold - # The italic font face italic: - family: Source Code Pro for Powerline # should be "Menlo" or something on macOS. - # Style can be specified to pick a specific face. - # style: Italic +{% if hostname == 'sputnik' %} + family: SauceCodePro Nerd Font +{% else if hostname == 'vostok' %} + family: Source Code Pro for Powerline +{% else %} + family: monospace +{% end if %} + + style: Italic # Point size of the font - size: 10.0 +{% if hostname == 'sputnik' %} + size: 11.0 +{% else if hostname == 'vostok' %} + size: 11.0 +{% else %} + size: 11.0 +{% end if %} + # Offset is the extra space around each character. offset.y can be thought of # as modifying the linespacing, and offset.x as modifying the letter spacing. offset: