Skip to content

Instantly share code, notes, and snippets.

@rnyrnyrny
Last active May 29, 2023 08:25
Show Gist options
  • Save rnyrnyrny/0ce28f2d72b38a7fed7c7980e8e07228 to your computer and use it in GitHub Desktop.
Save rnyrnyrny/0ce28f2d72b38a7fed7c7980e8e07228 to your computer and use it in GitHub Desktop.
a simple wezterm config that I use
-- I recently switched from alacritty to wezterm. Supports mouse scrolling, has builtin emoji and multi-tab support. So far so good.
-- The config is in lua that I don't know much about. But the official doc has an example config to start with.
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- This is where you actually apply your config choices
config.color_scheme = 'batman'
-- the font is named 'Source Code Pro ExtraLight', but I actually use the DemiBold weight. looks awesome
config.font = wezterm.font('Source Code Pro ExtraLight', { weight="DemiBold" })
config.font_size = 10.0
config.line_height = 1.0
config.freetype_load_target = "Light"
config.freetype_render_target = "HorizontalLcd"
config.foreground_text_hsb = {
hue = 1.0,
saturation = 1.0,
brightness = 1.0,
}
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.default_prog = { "C:\\Windows\\system32\\wsl.exe" }
config.default_cwd = "\\\\wsl$\\Arch_Linux\\root"
config.canonicalize_pasted_newlines = "None"
-- and finally, return the configuration to wezterm
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment