Skip to content

Instantly share code, notes, and snippets.

@sharpicx
Created November 22, 2025 12:22
Show Gist options
  • Select an option

  • Save sharpicx/3235441c1e0f49c56d0f975265abb2c3 to your computer and use it in GitHub Desktop.

Select an option

Save sharpicx/3235441c1e0f49c56d0f975265abb2c3 to your computer and use it in GitHub Desktop.
local wezterm = require("wezterm")
local config = wezterm.config_builder()
local act = wezterm.action
local mux = wezterm.mux
config.window_close_confirmation = "NeverPrompt"
wezterm.on("gui-startup", function(cmd)
local tab, pane, window = mux.spawn_window(cmd or {})
--window:gui_window():maximize()
end)
config.font = wezterm.font_with_fallback({
"UbuntuSansMono Nerd Font",
"Symbols Nerd Font",
"Noto Color Emoji",
})
config.font_rules = {
{
intensity = "Normal",
italic = false,
font = wezterm.font("UbuntuSansMono Nerd Font", { weight = "DemiBold" }),
},
{
intensity = "Bold",
italic = false,
font = wezterm.font("UbuntuSansMono Nerd Font", { weight = "Bold" }),
},
{
intensity = "Half",
italic = true,
font = wezterm.font("UbuntuSansMono Nerd Font", { weight = "Bold" }),
},
{
intensity = "Normal",
italic = true,
font = wezterm.font("UbuntuSansMono Nerd Font", { weight = "Bold", style = "Italic" }),
},
{
intensity = "Bold",
italic = true,
font = wezterm.font("UbuntuSansMono Nerd Font", { weight = "Bold", style = "Italic" }),
},
}
config.initial_rows = 100
config.initial_cols = 210
config.font_size = 10
config.line_height = 1
config.cell_width = 1
config.scrollback_lines = 10000000
config.term = "xterm-256color"
--config.window_background_image = "C:\\Windows\\Web\\Wallpaper\\ThemeA\\img20.jpg"
config.bold_brightens_ansi_colors = true
config.default_cursor_style = "BlinkingBar"
config.cursor_blink_rate = 1
config.colors = {
background = "#000000",
foreground = "#ffffff",
cursor_bg = "#b2b2b2",
cursor_fg = "#ffffff",
cursor_border = "#b2b2b2",
ansi = {
"#303030",
"#ff619e",
"#ffa1b8",
"#ffc89a",
"#5fafff",
"#fff1b3",
"#c7f5be",
"#ffffff",
},
brights = {
"#909090",
"#ed87ae",
"#ffbfcf",
"#fcd0ac",
"#7dbeff",
"#fff5c7",
"#d0fac8",
"#aaaaaa",
},
}
config.window_padding = {
left = 5,
right = 4,
top = 5,
bottom = 1,
}
config.default_prog = {
"C:\\Program Files\\PowerShell\\7\\pwsh.exe",
"-noprofile",
"-nologo",
"-ExecutionPolicy",
"Bypass",
"-command",
"wsl.exe -d Arch -e zsh -ic 'tmux has-session -t SHARPICX 2>/dev/null && exec tmux attach-session -t SHARPICX || exec tmux new-session -s SHARPICX -n General'",
}
-- config.default_prog = {
-- "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
-- "-nologo",
-- }
config.enable_tab_bar = false
config.window_background_opacity = 1
config.text_background_opacity = 1
config.window_decorations = "RESIZE"
--config.selection_word_boundary = "\t\n"
config.use_resize_increments = false
config.allow_square_glyphs_to_overflow_width = "Always"
config.adjust_window_size_when_changing_font_size = false
config.enable_scroll_bar = false
config.enable_wayland = false
config.enable_kitty_graphics = false
config.disable_default_key_bindings = true
config.keys = {
{ key = "=", mods = "CTRL", action = wezterm.action.IncreaseFontSize },
{ key = "-", mods = "CTRL", action = wezterm.action.DecreaseFontSize },
{
key = "V",
mods = "CTRL|SHIFT",
action = wezterm.action.Multiple({ wezterm.action.PasteFrom("Clipboard") }),
},
{ key = "F11", mods = "", action = wezterm.action.ToggleFullScreen },
{ key = "0", mods = "CTRL", action = wezterm.action.ResetFontSize },
}
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment