switch to wezterm
This commit is contained in:
28
.wezterm.lua
Normal file
28
.wezterm.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
-- Pull in the wezterm API
|
||||
local wezterm = require("wezterm")
|
||||
|
||||
-- This will hold the configuration.
|
||||
local config = wezterm.config_builder()
|
||||
|
||||
function scheme_for_appearance(appearance)
|
||||
if appearance:find("Dark") then
|
||||
return "Catppuccin Mocha"
|
||||
else
|
||||
return "Catppuccin Latte"
|
||||
end
|
||||
end
|
||||
|
||||
wezterm.on("window-config-reloaded", function(window, pane)
|
||||
local overrides = window:get_config_overrides() or {}
|
||||
local appearance = window:get_appearance()
|
||||
local scheme = scheme_for_appearance(appearance)
|
||||
if overrides.color_scheme ~= scheme then
|
||||
overrides.color_scheme = scheme
|
||||
window:set_config_overrides(overrides)
|
||||
end
|
||||
end)
|
||||
|
||||
config.font = wezterm.font("mononoki")
|
||||
config.font_size = 15
|
||||
|
||||
return config
|
Reference in New Issue
Block a user