Files
dotfiles/.wezterm.lua

39 lines
857 B
Lua
Raw Normal View History

2024-05-06 02:50:13 +01:00
-- 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)
2024-05-14 02:59:08 +01:00
config.font = wezterm.font("CommitMono")
2024-08-30 00:19:51 +01:00
config.font_size = 12
2024-05-06 02:50:13 +01:00
2024-05-06 17:06:42 +01:00
config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = true
config.window_padding = {
left = "1cell",
right = "1cell",
top = 0,
bottom = 0,
}
2024-05-06 02:50:13 +01:00
return config