From c7df95d112fb24ecad87f3322dce9624dedab2c7 Mon Sep 17 00:00:00 2001 From: winston Date: Wed, 21 Jun 2023 23:46:11 +0200 Subject: [PATCH] feat(wezterm): use single font setup --- home/apps/wezterm/fonts.lua | 37 ----------------------------------- home/apps/wezterm/wezterm.lua | 5 ++++- 2 files changed, 4 insertions(+), 38 deletions(-) delete mode 100644 home/apps/wezterm/fonts.lua diff --git a/home/apps/wezterm/fonts.lua b/home/apps/wezterm/fonts.lua deleted file mode 100644 index 633e174..0000000 --- a/home/apps/wezterm/fonts.lua +++ /dev/null @@ -1,37 +0,0 @@ ----@type wezterm -local wezterm = require("wezterm") -local M = {} - -local function get_victor(weigth) - return wezterm.font({ - family = "Victor Mono", - style = "Italic", - weight = weigth, - }) -end - -M.apply = function(c) - c.font = wezterm.font_with_fallback({ - "Berkeley Mono", - "Symbols Nerd Font", - }) - c.font_rules = { - { - font = get_victor("Black"), - intensity = "Bold", - italic = true, - }, - { - font = get_victor("Bold"), - intensity = "Half", - italic = true, - }, - { - font = get_victor("DemiBold"), - intensity = "Normal", - italic = true, - }, - } -end - -return M diff --git a/home/apps/wezterm/wezterm.lua b/home/apps/wezterm/wezterm.lua index f988577..843b2c3 100644 --- a/home/apps/wezterm/wezterm.lua +++ b/home/apps/wezterm/wezterm.lua @@ -8,9 +8,12 @@ if wezterm.config_builder then c:set_strict_mode(true) end -require("fonts").apply(c) require("keys").apply(c) +c.font = wezterm.font_with_fallback({ + "Berkeley Mono", + "Symbols Nerd Font", +}) -- window c.window_decorations = "RESIZE" c.window_padding = { left = 0, right = 0, top = 0, bottom = 0 }