2022-12-19 17:50:20 +01:00
|
|
|
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-03-04 05:50:49 +01:00
|
|
|
})
|
2023-05-18 12:30:46 +02:00
|
|
|
end
|
2023-03-04 05:50:49 +01:00
|
|
|
|
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
|
|
|
|
|
2022-12-19 17:50:20 +01:00
|
|
|
return M
|