Skip to content

Instantly share code, notes, and snippets.

@sumeet
Created November 17, 2025 19:16
Show Gist options
  • Select an option

  • Save sumeet/eec44f49ee3a53747d0b6d12d5c733db to your computer and use it in GitHub Desktop.

Select an option

Save sumeet/eec44f49ee3a53747d0b6d12d5c733db to your computer and use it in GitHub Desktop.
local wezterm = require 'wezterm'
local names = {}
for name, _ in pairs(wezterm.color.get_builtin_schemes()) do
table.insert(names, name)
end
math.randomseed(os.time())
wezterm.on('window-config-reloaded', function(window, pane)
-- first time this window loads config → pick a scheme
if not window:get_config_overrides() then
local scheme = names[math.random(#names)]
window:set_config_overrides({ color_scheme = scheme })
end
end)
local config = wezterm.config_builder()
config.font_size = 19
config.window_decorations = "RESIZE"
config.use_fancy_tab_bar = true
config.hide_tab_bar_if_only_one_tab = true
config.font = wezterm.font('Victor Mono')
config.keys = {
{
key = 'Enter',
mods = 'ALT',
action = wezterm.action.DisableDefaultAssignment,
},
}
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment