From 781717d87d80632c19714a71fed4a866e869665c Mon Sep 17 00:00:00 2001 From: Von Random <von@mechanus.net> Date: Thu, 2 Jan 2025 18:53:38 +0200 Subject: [PATCH] ghostty: per os template --- .chezmoi.toml.tmpl | 11 +++++++++++ dot_config/ghostty/{config => config.tmpl} | 11 ++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .chezmoi.toml.tmpl rename dot_config/ghostty/{config => config.tmpl} (78%) diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl new file mode 100644 index 0000000..89a6f86 --- /dev/null +++ b/.chezmoi.toml.tmpl @@ -0,0 +1,11 @@ +sourceDir = "~/.vdotfiles" + +[data.ghostty_font.darwin] +face = "Cascadia Mono PL" +size = "14" +feats = ['ss01', 'ss19', 'ss20'] + +[data.ghostty_font.linux] +face = "IBM Plex Mono" +size = "12" +feats = ['ss03'] diff --git a/dot_config/ghostty/config b/dot_config/ghostty/config.tmpl similarity index 78% rename from dot_config/ghostty/config rename to dot_config/ghostty/config.tmpl index ab073cc..fb1c4a5 100644 --- a/dot_config/ghostty/config +++ b/dot_config/ghostty/config.tmpl @@ -1,8 +1,9 @@ -font-family = Cascadia Mono PL -font-feature = ss01 -font-feature = ss19 -font-feature = ss20 -font-size = 12 +{{- $font := index .ghostty_font .chezmoi.os -}} +font-family = {{ $font.face }} +{{- range $font.feats }} +font-feature = {{ . }} +{{- end }} +font-size = {{ $font.size }} cursor-style = block cursor-style-blink = false