Catppuccin for WezTerm
Catppuccin is now included in WezTerm.
- Edit your
wezterm.lua
. - Set
color_scheme
to your preferred flavor.
return {
-- ...your existing config
color_scheme = "Catppuccin Mocha", -- or Macchiato, Frappe, Latte
}
- (Optional) To enable syncing with your OS theme, use
wezterm.gui.get_appearance()
local wezterm = require "wezterm"
function scheme_for_appearance(appearance)
if appearance:find "Dark" then
return "Catppuccin Mocha"
else
return "Catppuccin Latte"
end
end
return {
-- ...your existing config
color_scheme = scheme_for_appearance(wezterm.gui.get_appearance()),
}
- Q: "How can I set custom color overrides?"
A: Usewezterm.color.get_builtin_schemes()
like this:
local wezterm = require("wezterm")
local custom = wezterm.color.get_builtin_schemes()["Catppuccin Mocha"]
custom.background = "#000000"
custom.tab_bar.background = "#040404"
custom.tab_bar.inactive_tab.bg_color = "#0f0f0f"
custom.tab_bar.new_tab.bg_color = "#080808"
return {
color_schemes = {
["OLEDppuccin"] = custom,
},
color_scheme = "OLEDppuccin",
}
Copyright © 2021-present Catppuccin Org