Skip to content

Instantly share code, notes, and snippets.

@paul-d-ray
Last active February 7, 2026 03:57
Show Gist options
  • Select an option

  • Save paul-d-ray/c3df285aeb953425a6d5db22d485b92b to your computer and use it in GitHub Desktop.

Select an option

Save paul-d-ray/c3df285aeb953425a6d5db22d485b92b to your computer and use it in GitHub Desktop.
Wezterm Config File
-- Pull in the wezterm API
-- PR 2026-02-06 17:52:03
-- Running on windows
-- Using Nushell set OSC133 = false
-- $env.config.shell_integration.osc133 = false
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
local act = wezterm.action
-- This is where you actually apply your config choices.
-- For example, changing the initial geometry for new windows:
config.initial_cols = 180
config.initial_rows = 40
config.window_padding = { left = 8, right = 10, top = 8, bottom = 8 }
config.enable_scroll_bar = true
config.colors = {
scrollbar_thumb = 'rgba(150,150,150,0.7)', -- light gray semi-transparent
-- or 'silver', '#aaaaaa', etc.
}
config.scrollback_lines = 9001
-- or, changing the font size and color scheme.
config.font_size = 10
config.color_scheme = 'Vs Code Dark+ (Gogh)'
config.font = wezterm.font('CaskaydiaCove Nerd Font Mono')
config.font_size = 11.0
wezterm.on("bell", function(window, pane)
wezterm.run_child_process({
"C:\\Users\\Paul_Ray\\scoop\\apps\\nircmd\\current\\nircmd.exe",
"mediaplay",
"2000",
"C:\\Program Files\\Tclock\\waves\\Alarm.wav"
})
end)
config.visual_bell = {
fade_in_function = 'Linear',
fade_in_duration_ms = 75,
fade_out_function = 'Linear',
fade_out_duration_ms = 75,
target = 'BackgroundColor',
}
config.default_cwd = "d:/temp"
-- =============================================
-- Launch menu (emulates WT profile list)
-- =============================================
config.launch_menu = {
{ label = 'Command Prompt', args = { '%SystemRoot%\\System32\\cmd.exe' } },
{ label = 'PowerShell (Core)', args = { 'pwsh.exe' } }, -- assuming pwsh is in PATH
{ label = 'Nushell', args = { 'C:\\Users\\Paul_Ray\\AppData\\Local\\Programs\\nu\\bin\\nu.exe' } },
{ label = 'SQLite', args = { 'D:\\work\\sqlite\\bin\\sqlite3.exe' }, cwd = 'D:\\work\\sqlite\\data' },
{ label = 'Python', args = { 'C:\\Users\\Paul_Ray\\AppData\\Local\\Programs\\Python\\Python313\\python.exe' } },
{ label = 'Visidata', args = { 'C:\\Users\\Paul_Ray\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\vd.exe' }, cwd = 'd:\\work\\visidata' },
{ label = 'Router SSH', args = { 'ssh', 'admin@192.168.1.1' } },
-- Add more as needed (e.g. Admin CMD requires extra setup via wezterm cli or external launcher)
}
config.keys = {
{ key = 'UpArrow', mods = 'CTRL|SHIFT', action = act.ScrollByLine(-1) },
{ key = 'DownArrow', mods = 'CTRL|SHIFT', action = act.ScrollByLine(1) },
-- { key = 'l', mods = 'CTRL', action = act.ClearScrollback 'ScrollbackAndViewport'},
}
-- 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