1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
| local wezterm = require 'wezterm' local c = {} if wezterm.config_builder then c = wezterm.config_builder() end
c.initial_cols = 96 c.initial_rows = 24
c.window_close_confirmation = 'NeverPrompt'
c.font = wezterm.font 'Noto Mono'
local materia = wezterm.color.get_builtin_schemes()['Material Darker (base16)'] materia.scrollbar_thumb = '#cccccc' c.colors = materia
c.window_background_opacity = 0.9
c.window_decorations = "INTEGRATED_BUTTONS|RESIZE"
c.window_padding = { left = 0, right = 15, top = 0, bottom = 0 }
c.enable_scroll_bar = true
c.default_prog = { 'C:/msys64/msys2_shell.cmd', '-defterm', '-here', '-no-start', '-shell', 'zsh', '-mingw64' }
c.launch_menu = { { label = 'MINGW64 / MSYS2', args = { 'C:/msys64/msys2_shell.cmd', '-defterm', '-here', '-no-start', '-shell', 'zsh', '-mingw64' }, }, { label = 'MSYS / MSYS2', args = { 'C:/msys64/msys2_shell.cmd', '-defterm', '-here', '-no-start', '-shell', 'zsh', '-msys' }, }, { label = 'PowerShell', args = { 'C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe' }, }, { label = 'CMD', args = { 'cmd.exe' }, }, { label = 'nas / ssh', args = { 'C:/msys64/usr/bin/ssh.exe', 'nas' }, }, }
c.disable_default_key_bindings = true local act = wezterm.action c.keys = { { key = 'Tab', mods = 'SHIFT|CTRL', action = act.ActivateTabRelative(1) }, { key = 'F11', mods = 'NONE', action = act.ToggleFullScreen }, { key = '+', mods = 'SHIFT|CTRL', action = act.IncreaseFontSize }, { key = '_', mods = 'SHIFT|CTRL', action = act.DecreaseFontSize }, { key = 'C', mods = 'SHIFT|CTRL', action = act.CopyTo 'Clipboard' }, { key = 'N', mods = 'SHIFT|CTRL', action = act.SpawnWindow }, { key = 'T', mods = 'SHIFT|CTRL', action = act.ShowLauncher }, { key = 'Enter', mods = 'SHIFT|CTRL', action = act.ShowLauncherArgs { flags = 'FUZZY|TABS|LAUNCH_MENU_ITEMS' } }, { key = 'V', mods = 'SHIFT|CTRL', action = act.PasteFrom 'Clipboard' }, { key = 'W', mods = 'SHIFT|CTRL', action = act.CloseCurrentTab{ confirm = false } }, { key = 'PageUp', mods = 'SHIFT|CTRL', action = act.ScrollByPage(-1) }, { key = 'PageDown', mods = 'SHIFT|CTRL', action = act.ScrollByPage(1) }, { key = 'UpArrow', mods = 'SHIFT|CTRL', action = act.ScrollByLine(-1) }, { key = 'DownArrow', mods = 'SHIFT|CTRL', action = act.ScrollByLine(1) }, }
return c
|