alacritty: Split OS-dependent font config
This commit is contained in:
parent
8393b78be9
commit
2615997342
7 changed files with 87 additions and 44 deletions
3
alacritty/.gitignore
vendored
3
alacritty/.gitignore
vendored
|
|
@ -3,3 +3,6 @@
|
|||
|
||||
# Symlink created by `../bin/set-colors`
|
||||
/colors.yml
|
||||
|
||||
# Symlink created by `../install`
|
||||
/os.yml
|
||||
|
|
|
|||
|
|
@ -39,50 +39,6 @@ tabspaces: 8
|
|||
# When true, bold text is drawn using the bright variant of colors.
|
||||
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
|
||||
render_timer: false
|
||||
|
||||
|
|
|
|||
43
alacritty/darwin.yml
Normal file
43
alacritty/darwin.yml
Normal 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
|
||||
|
|
@ -5,6 +5,7 @@ set -euo pipefail
|
|||
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
inputs=(
|
||||
"${CURDIR}/base.yml"
|
||||
"${CURDIR}/os.yml"
|
||||
"${CURDIR}/colors.yml"
|
||||
)
|
||||
output="${CURDIR}/alacritty.yml"
|
||||
|
|
|
|||
38
alacritty/linux.yml
Normal file
38
alacritty/linux.yml
Normal 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
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
quiet: false
|
||||
|
||||
- link:
|
||||
~/.config/alacritty/os.yml: alacritty/darwin.yml
|
||||
~/.config/git/config-os: git/config-darwin
|
||||
~/.config/karabiner: karabiner/
|
||||
~/.config/nvim/os-plugins.vim: neovim/darwin-plugins.vim
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
- link:
|
||||
~/.config/zsh/os.zshrc: zsh/linux.zshrc
|
||||
~/.config/nvim/os-plugins.vim: neovim/linux-plugins.vim
|
||||
~/.config/alacritty/os.yml: alacritty/linux.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue