dotfiles/home/apps/wezterm/fonts.lua

38 lines
641 B
Lua
Raw Normal View History

2023-05-25 20:50:28 +02:00
---@type wezterm
local wezterm = require("wezterm")
local M = {}
2023-05-18 12:30:46 +02:00
local function get_victor(weigth)
return wezterm.font({
family = "Victor Mono",
style = "Italic",
weight = weigth,
})
2023-05-18 12:30:46 +02:00
end
2023-03-05 05:40:35 +01:00
M.apply = function(c)
2023-05-18 12:30:46 +02:00
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,
},
}
2023-03-05 05:40:35 +01:00
end
return M