Created
September 15, 2022 17:25
-
-
Save qsimpleq/3c1235bc25cdee6b3ede751d03f9f681 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wezterm = require 'wezterm'; | |
local act = wezterm.action | |
local selected_scheme = 'Dark+'; | |
local custom_colors = wezterm.get_builtin_color_schemes()[selected_scheme]; | |
custom_colors.scrollbar_thumb = '#4f5255'; | |
custom_colors.tab_bar = { | |
active_tab = { | |
bg_color = '#222528', | |
fg_color = '#c0c0c0', | |
} | |
}; | |
local custom_font = wezterm.font_with_fallback { | |
{ family = 'JetBrains Mono', harfbuzz_features = {"zero=1"} }, | |
{ family = 'Roboto' }, | |
}; | |
local custom_keys = { | |
{ mods = 'CTRL|SHIFT', key = 'raw:28', --[[t]] action = act.SpawnTab('CurrentPaneDomain') }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:25', --[[w]] action = act.CloseCurrentTab { confirm = true } }, | |
{ mods = 'CTRL', key = 'raw:49', --[[`]] action = act.ActivateLastTab }, | |
{ mods = 'ALT', key = 'raw:10', --[[1]] action = act.ActivateTab(0) }, | |
{ mods = 'ALT', key = 'raw:11', --[[2]] action = act.ActivateTab(1) }, | |
{ mods = 'ALT', key = 'raw:12', --[[3]] action = act.ActivateTab(2) }, | |
{ mods = 'ALT', key = 'raw:13', --[[4]] action = act.ActivateTab(3) }, | |
{ mods = 'ALT', key = 'raw:14', --[[5]] action = act.ActivateTab(4) }, | |
{ mods = 'ALT', key = 'raw:15', --[[6]] action = act.ActivateTab(5) }, | |
{ mods = 'ALT', key = 'raw:16', --[[7]] action = act.ActivateTab(6) }, | |
{ mods = 'ALT', key = 'raw:17', --[[8]] action = act.ActivateTab(7) }, | |
{ mods = 'ALT', key = 'raw:18', --[[9]] action = act.ActivateTab(8) }, | |
{ mods = 'ALT', key = 'raw:19', --[[0]] action = act.ActivateTab(-1) }, | |
{ mods = 'CTRL', key = 'Tab', action = act.ActivateTabRelative(1) }, | |
{ mods = 'SHIFT|CTRL', key = 'Tab', action = act.ActivateTabRelative(-1) }, | |
{ mods = 'SHIFT|SUPER', key = 'raw:34', --[[{]] action = act.ActivateTabRelative(-1) }, | |
{ mods = 'SHIFT|SUPER', key = 'raw:35', --[[}]] action = act.ActivateTabRelative(1) }, | |
{ mods = 'SHIFT', key = 'PageUp', action = act.ScrollByPage(-1) }, | |
{ mods = 'SHIFT', key = 'PageDown', action = act.ScrollByPage(1) }, | |
{ mods = 'CTRL', key = 'PageUp', action = act.ActivateTabRelative(-1) }, | |
{ mods = 'CTRL|SHIFT', key = 'PageUp', action = act.MoveTabRelative(-1) }, | |
{ mods = 'CTRL', key = 'PageDown', action = act.ActivateTabRelative(1) }, | |
{ mods = 'CTRL|SHIFT', key = 'PageDown', action = act.MoveTabRelative(1) }, | |
{ mods = 'CTRL|SHIFT', key = 'Enter', action = act.SplitHorizontal { domain = 'CurrentPaneDomain' } }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:21', --[[+]] action = act.SplitHorizontal { domain = 'CurrentPaneDomain' } }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:20', --[[-]] action = act.SplitVertical { domain = 'CurrentPaneDomain' } }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:25', --[[w]] action = act.CloseCurrentPane { confirm = true }, }, | |
{ mods = 'CTRL|SHIFT', key = 'LeftArrow', action = act.ActivatePaneDirection('Left') }, | |
{ mods = 'CTRL|ALT|SHIFT', key = 'LeftArrow', action = act.AdjustPaneSize {'Left', 1} }, | |
{ mods = 'CTRL|SHIFT', key = 'RightArrow', action = act.ActivatePaneDirection('Right') }, | |
{ mods = 'CTRL|ALT|SHIFT', key = 'RightArrow', action = act.AdjustPaneSize {'Right', 1} }, | |
{ mods = 'CTRL|SHIFT', key = 'UpArrow', action = act.ActivatePaneDirection('Up') }, | |
{ mods = 'CTRL|ALT|SHIFT', key = 'UpArrow', action = act.AdjustPaneSize {'Up', 1} }, | |
{ mods = 'CTRL|SHIFT', key = 'DownArrow', action = act.ActivatePaneDirection('Down') }, | |
{ mods = 'CTRL|ALT|SHIFT', key = 'DownArrow', action = act.AdjustPaneSize {'Down', 1} }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:54', --[[c]] action = act.CopyTo ('Clipboard') }, | |
{ key = 'Copy', action = act.CopyTo ('Clipboard') }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:55', --[[v]] action = act.PasteFrom('Clipboard') }, | |
{ key = 'Paste', action = act.PasteFrom('Clipboard') }, | |
{ mods = 'CTRL', key = 'Insert', action = act.CopyTo ('PrimarySelection') }, | |
{ mods = 'SHIFT', key = 'Insert', action = act.PasteFrom('PrimarySelection') }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:41', --[[f]] action = act.Search('CurrentSelectionOrEmptyString') }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:45', --[[k]] action = act.ClearScrollback('ScrollbackOnly') }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:46', --[[l]] action = act.ShowDebugOverlay }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:57', --[[n]] action = act.SpawnWindow }, | |
{ mods = 'CTRL|SHIFT', key = 'raw:27', --[[r]] action = act.ReloadConfiguration }, | |
{ mods = 'SHIFT|CTRL', key = 'raw:53', --[[x]] action = act.ActivateCopyMode }, | |
{ mods = 'SHIFT|CTRL', key = 'raw:52', --[[z]] action = act.TogglePaneZoomState }, | |
}; | |
return { | |
use_ime=true, | |
font = custom_font, | |
enable_scroll_bar = true, | |
tab_bar_at_bottom = true, | |
adjust_window_size_when_changing_font_size = false, | |
disable_default_key_bindings = true, | |
keys = custom_keys, | |
colors = custom_colors, | |
inactive_pane_hsb = { | |
saturation = 0.9, | |
brightness = 0.8, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment