1
0
Fork 0

alacritty: Split OS-dependent font config

This commit is contained in:
Jeremy Kaplan 2021-04-16 13:23:51 -07:00
commit 2615997342
7 changed files with 87 additions and 44 deletions

View file

@ -3,3 +3,6 @@
# Symlink created by `../bin/set-colors` # Symlink created by `../bin/set-colors`
/colors.yml /colors.yml
# Symlink created by `../install`
/os.yml

View file

@ -39,50 +39,6 @@ tabspaces: 8
# When true, bold text is drawn using the bright variant of colors. # When true, bold text is drawn using the bright variant of colors.
draw_bold_text_with_bright_colors: true draw_bold_text_with_bright_colors: true
# Font configuration (changes require restart)
#
# Important font attributes like antialiasing, subpixel aa, and hinting can be
# controlled through fontconfig. Specifically, the following attributes should
# have an effect:
#
# * hintstyle
# * antialias
# * lcdfilter
# * rgba
#
# For instance, if you wish to disable subpixel antialiasing, you might set the
# rgba property to "none". If you wish to completely disable antialiasing, you
# can set antialias to false.
#
# Please see these resources for more information on how to use fontconfig
#
# * https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration
# * file:///usr/share/doc/fontconfig/fontconfig-user.html
font:
normal:
family: Input Mono Narrow Light
# Point size of the font
size: 10
# 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:
x: 0
y: 0
# Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increase the x offset to move the glyph to
# the right, increase the y offset to move the glyph upward.
glyph_offset:
x: 0
y: 0
# OS X only: use thin stroke font rendering. Thin strokes are suitable
# for retina displays, but for non-retina you probably want this set to
# false.
use_thin_strokes: true
# Should display the render timer # Should display the render timer
render_timer: false render_timer: false

43
alacritty/darwin.yml Normal file
View file

@ -0,0 +1,43 @@
# Font configuration (changes require restart)
#
# Important font attributes like antialiasing, subpixel aa, and hinting can be
# controlled through fontconfig. Specifically, the following attributes should
# have an effect:
#
# * hintstyle
# * antialias
# * lcdfilter
# * rgba
#
# For instance, if you wish to disable subpixel antialiasing, you might set the
# rgba property to "none". If you wish to completely disable antialiasing, you
# can set antialias to false.
#
# Please see these resources for more information on how to use fontconfig
#
# * https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration
# * file:///usr/share/doc/fontconfig/fontconfig-user.html
font:
normal:
family: Iosevka
# Point size of the font
size: 12
# 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:
x: 0
y: 0
# Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increase the x offset to move the glyph to
# the right, increase the y offset to move the glyph upward.
glyph_offset:
x: 0
y: 0
# OS X only: use thin stroke font rendering. Thin strokes are suitable
# for retina displays, but for non-retina you probably want this set to
# false.
use_thin_strokes: false

View file

@ -5,6 +5,7 @@ set -euo pipefail
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
inputs=( inputs=(
"${CURDIR}/base.yml" "${CURDIR}/base.yml"
"${CURDIR}/os.yml"
"${CURDIR}/colors.yml" "${CURDIR}/colors.yml"
) )
output="${CURDIR}/alacritty.yml" output="${CURDIR}/alacritty.yml"

38
alacritty/linux.yml Normal file
View file

@ -0,0 +1,38 @@
# Font configuration (changes require restart)
#
# Important font attributes like antialiasing, subpixel aa, and hinting can be
# controlled through fontconfig. Specifically, the following attributes should
# have an effect:
#
# * hintstyle
# * antialias
# * lcdfilter
# * rgba
#
# For instance, if you wish to disable subpixel antialiasing, you might set the
# rgba property to "none". If you wish to completely disable antialiasing, you
# can set antialias to false.
#
# Please see these resources for more information on how to use fontconfig
#
# * https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration
# * file:///usr/share/doc/fontconfig/fontconfig-user.html
font:
normal:
family: Input Mono Narrow Light
# Point size of the font
size: 10
# 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:
x: 0
y: 0
# Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increase the x offset to move the glyph to
# the right, increase the y offset to move the glyph upward.
glyph_offset:
x: 0
y: 0

View file

@ -6,6 +6,7 @@
quiet: false quiet: false
- link: - link:
~/.config/alacritty/os.yml: alacritty/darwin.yml
~/.config/git/config-os: git/config-darwin ~/.config/git/config-os: git/config-darwin
~/.config/karabiner: karabiner/ ~/.config/karabiner: karabiner/
~/.config/nvim/os-plugins.vim: neovim/darwin-plugins.vim ~/.config/nvim/os-plugins.vim: neovim/darwin-plugins.vim

View file

@ -1,3 +1,4 @@
- link: - link:
~/.config/zsh/os.zshrc: zsh/linux.zshrc ~/.config/zsh/os.zshrc: zsh/linux.zshrc
~/.config/nvim/os-plugins.vim: neovim/linux-plugins.vim ~/.config/nvim/os-plugins.vim: neovim/linux-plugins.vim
~/.config/alacritty/os.yml: alacritty/linux.yml