Skip to content

Instantly share code, notes, and snippets.

@jvegaf
Created September 7, 2023 22:32
Show Gist options
  • Save jvegaf/757800a078a4d9d6629bb8c4284c3ef5 to your computer and use it in GitHub Desktop.
Save jvegaf/757800a078a4d9d6629bb8c4284c3ef5 to your computer and use it in GitHub Desktop.
Wezterm config WSL
local wezterm = require 'wezterm'
local wsl_domains = wezterm.default_wsl_domains()
wezterm.on("gui-startup", function(cmd)
local _, _, window = wezterm.mux.spawn_window(cmd or {})
window:gui_window():toggle_fullscreen()
end)
for _, domain in ipairs(wsl_domains) do
domain.default_cwd = "~"
end
return {
adjust_window_size_when_changing_font_size = false,
audible_bell = 'Disabled',
background = {
{
source = { File = "/Users/vlad/btsync/agilenet/nodes/common/WezTerm/themes/catpuccin/frappe/background.png" },
-- opacity = 0.8
},
{
source = { File = "/Users/vlad/btsync/agilenet/nodes/common/WezTerm/backgrounds/devinsideyou/office-1080p.png" },
horizontal_align = 'Center',
vertical_align = 'Middle',
height = 'Contain',
width = 'Contain',
repeat_x = 'NoRepeat',
repeat_y = 'NoRepeat',
opacity = 0.1
},
},
color_scheme = 'Catppuccin Frappe',
disable_default_key_bindings = true,
exit_behavior = 'Close',
font = wezterm.font {
family = 'FiraCode Nerd Font Mono',
weight = 'Light',
stretch = 'Normal',
style = 'Normal',
harfbuzz_features = { 'cv29', 'cv30', 'ss01', 'ss03', 'ss06', 'ss07', 'ss09' },
},
font_size = 20,
force_reverse_video_cursor = true,
hide_mouse_cursor_when_typing = true,
hide_tab_bar_if_only_one_tab = true,
keys = {
{ action = wezterm.action.ActivateCommandPalette, mods = 'CTRL|SHIFT', key = 'P' },
{ action = wezterm.action.CopyTo 'Clipboard' , mods = 'CTRL|SHIFT', key = 'C' },
{ action = wezterm.action.DecreaseFontSize , mods = 'CTRL', key = '-' },
{ action = wezterm.action.IncreaseFontSize , mods = 'CTRL', key = '=' },
{ action = wezterm.action.Nop , mods = 'ALT', key = 'Enter' },
{ action = wezterm.action.PasteFrom 'Clipboard' , mods = 'CTRL|SHIFT', key = 'V' },
{ action = wezterm.action.ResetFontSize , mods = 'CTRL', key = '0' },
{ action = wezterm.action.ToggleFullScreen , key = 'F11' },
},
scrollback_lines = 10000,
show_update_window = true,
use_dead_keys = false,
unicode_version = 15,
macos_window_background_blur = 100,
window_close_confirmation = 'NeverPrompt',
window_padding = {
left = 0,
right = 0,
top = '0.6cell',
bottom = 0,
},
wsl_domains = wsl_domains,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment