Skip to content

Instantly share code, notes, and snippets.

@toge
Created March 13, 2022 01:38
Show Gist options
  • Select an option

  • Save toge/15f7ad1837e4e0c318926daca552402d to your computer and use it in GitHub Desktop.

Select an option

Save toge/15f7ad1837e4e0c318926daca552402d to your computer and use it in GitHub Desktop.
wezterm config
local wezterm = require("wezterm")
local default_keybinds = {
{ key = "c", mods = "CTRL|SHIFT", action = wezterm.action({ CopyTo = "Clipboard" }) },
{ key = "v", mods = "CTRL|SHIFT", action = wezterm.action({ PasteFrom = "Clipboard" }) },
{ key = "Insert", mods = "SHIFT", action = wezterm.action({ PasteFrom = "PrimarySelection" }) },
{ key = "=", mods = "CTRL", action = "ResetFontSize" },
{ key = "+", mods = "CTRL", action = "IncreaseFontSize" },
{ key = "-", mods = "CTRL", action = "DecreaseFontSize" },
{ key = " ", mods = "CTRL|SHIFT", action = "QuickSelect" },
{ key = "x", mods = "CTRL|SHIFT", action = "ActivateCopyMode" },
{ key = "PageUp", mods = "ALT", action = wezterm.action({ ScrollByPage = -1 }) },
{ key = "PageDown", mods = "ALT", action = wezterm.action({ ScrollByPage = 1 }) },
{ key = "r", mods = "ALT", action = "ReloadConfiguration" },
{ key = "r", mods = "ALT|SHIFT", action = wezterm.action({ EmitEvent = "toggle-tmux-keybinds" }) },
{ key = "e", mods = "ALT", action = wezterm.action({ EmitEvent = "trigger-nvim-with-scrollback" }) },
{ key = "x", mods = "ALT", action = wezterm.action({ CloseCurrentPane = { confirm = false } }) },
{ key = "LeftArrow", mods = "CTRL|SHIFT", action = wezterm.action({ ActivateTabRelative =- 1 }) },
{ key = "RightArrow", mods = "CTRL|SHIFT", action = wezterm.action({ ActivateTabRelative = 1 }) },
}
local config = {
font = wezterm.font("HackGenNerd"),
use_ime = true,
font_size = 12.0,
color_scheme = "Brogrammer",
hide_tab_bar_if_only_one_tab = true,
adjust_window_size_when_changing_font_size = false,
keys = default_keybinds,
line_height = 0.9,
font_antialias = "Subpixel",
tab_bar_at_bottom = true,
default_prog = {"bash"},
launch_menu = {
{
args = {"ntop"},
},
{
args = {"bash", "-l",},
}
}
}
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment