Created
April 28, 2023 21:52
-
-
Save adophilus/4b4c604898f9292d629dd6604d76167e to your computer and use it in GitHub Desktop.
my wezterm config
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 default_prog = { 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe' } | |
local default_prog = { 'C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.3.3.0_x64__8wekyb3d8bbwe\\pwsh.exe' } | |
return { | |
default_prog = default_prog, | |
use_fancy_tab_bar = true, | |
window_decorations = 'NONE', | |
-- font = wezterm.font('Fira Code', { weight = 'Regular' }), | |
font = wezterm.font('Monocraft', { weight = 'Regular' }), | |
window_padding = { left = 0, right = 0, top = 0, bottom = 0 }, | |
leader = { key = 'a', mods = 'CTRL', timeout_milliseconds = 1000 }, | |
keys = { | |
{ key = 'f', mods = 'LEADER', action = wezterm.action.ToggleFullScreen }, | |
-- font size | |
{ key = '-', mods = 'CTRL', action = wezterm.action.DecreaseFontSize }, | |
{ key = '+', mods = 'CTRL', action = wezterm.action.IncreaseFontSize }, | |
-- tab actions | |
{ key = 'c', mods = 'LEADER', action = wezterm.action.SpawnTab 'CurrentPaneDomain' }, | |
{ key = 'c', mods = 'LEADER|CTRL', action = wezterm.action.SpawnWindow }, | |
{ key = 'h', mods = 'LEADER|SHIFT', action = wezterm.action.MoveTabRelative(-1) }, | |
{ key = 'l', mods = 'LEADER|SHIFT', action = wezterm.action.MoveTabRelative(1) }, | |
-- tab navigation | |
{ key = 'l', mods = 'LEADER|CTRL', action = wezterm.action.ActivateTabRelative(1) }, | |
{ key = 'h', mods = 'LEADER|CTRL', action = wezterm.action.ActivateTabRelative(-1) }, | |
-- pane splitting | |
{ key = '_', mods = 'LEADER|SHIFT', action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' } }, | |
{ key = '-', mods = 'LEADER', action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' } }, | |
-- pane navigation | |
{ key = 'h', mods = 'LEADER', action = wezterm.action { ActivatePaneDirection = 'Left' } }, | |
{ key = 'l', mods = 'LEADER', action = wezterm.action { ActivatePaneDirection = 'Right' } }, | |
{ key = 'k', mods = 'LEADER', action = wezterm.action { ActivatePaneDirection = 'Up' } }, | |
{ key = 'j', mods = 'LEADER', action = wezterm.action { ActivatePaneDirection = 'Down' } }, | |
-- pane actions | |
{ key = 'z', mods = 'LEADER', action = wezterm.action.TogglePaneZoomState }, | |
{ key = 'x', mods = 'LEADER', action = wezterm.action.CloseCurrentPane { confirm = true } }, | |
-- search actions | |
{ key = '/', mods = 'LEADER', action = wezterm.action.Search { Regex = "" } } | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment