wezterm config update

This commit is contained in:
Salar Rahmanian 2024-09-07 11:11:09 -07:00
parent 6f95ac5bc3
commit a92c0d905e

View file

@ -9,47 +9,47 @@ return {
adjust_window_size_when_changing_font_size = false, adjust_window_size_when_changing_font_size = false,
check_for_updates = false, check_for_updates = false,
-- color_scheme = "Gruvbox Light"; -- color_scheme = "Gruvbox Light";
color_scheme = "tokyonight", color_scheme = 'tokyonight',
font = wezterm.font("SF Mono"), font = wezterm.font 'SF Mono',
font_size = 16, font_size = 16,
dpi = 144, dpi = 144,
scrollback_lines = 50000, scrollback_lines = 50000,
initial_cols = 400, initial_cols = 400,
initial_rows = 80, initial_rows = 80,
leader = { key="b", mods="SUPER", timeout_milliseconds = 1000 }, leader = { key = 'b', mods = 'SUPER', timeout_milliseconds = 1000 },
default_prog = { "/etc/profiles/per-user/salar/bin/fish" }, default_prog = { '/etc/profiles/per-user/salar/bin/fish' },
ssh_domains = { ssh_domains = {
{ {
name = "hcloud1", name = 'hcloud1',
remote_address = "hcloud1.softinio.net", remote_address = 'hcloud1.softinio.net',
username = "salar", username = 'salar',
remote_wezterm_path = "/run/current-system/sw/bin/wezterm" remote_wezterm_path = '/run/current-system/sw/bin/wezterm',
} },
}, },
keys = { keys = {
{ key = "-", mods = "LEADER", action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}}, { key = '-', mods = 'LEADER', action = wezterm.action { SplitVertical = { domain = 'CurrentPaneDomain' } } },
{ key = "'", mods = "LEADER", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}}, { key = "'", mods = 'LEADER', action = wezterm.action { SplitHorizontal = { domain = 'CurrentPaneDomain' } } },
{ key = "k", mods = "SUPER", action=act.TogglePaneZoomState }, { key = 'k', mods = 'SUPER', action = act.TogglePaneZoomState },
{ key = "c", mods = "LEADER", action=wezterm.action{SpawnTab="CurrentPaneDomain"}}, { key = 'c', mods = 'LEADER', action = wezterm.action { SpawnTab = 'CurrentPaneDomain' } },
{ key = "h", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Left"}}, { key = 'h', mods = 'LEADER', action = wezterm.action { ActivatePaneDirection = 'Left' } },
{ key = "j", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Down"}}, { key = 'j', mods = 'LEADER', action = wezterm.action { ActivatePaneDirection = 'Down' } },
{ key = "k", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Up"}}, { key = 'k', mods = 'LEADER', action = wezterm.action { ActivatePaneDirection = 'Up' } },
{ key = "l", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Right"}}, { key = 'l', mods = 'LEADER', action = wezterm.action { ActivatePaneDirection = 'Right' } },
{ key = "H", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Left", 5}}}, { key = 'H', mods = 'LEADER|SHIFT', action = wezterm.action { AdjustPaneSize = { 'Left', 5 } } },
{ key = "J", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Down", 5}}}, { key = 'J', mods = 'LEADER|SHIFT', action = wezterm.action { AdjustPaneSize = { 'Down', 5 } } },
{ key = "K", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Up", 5}}}, { key = 'K', mods = 'LEADER|SHIFT', action = wezterm.action { AdjustPaneSize = { 'Up', 5 } } },
{ key = "L", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Right", 5}}}, { key = 'L', mods = 'LEADER|SHIFT', action = wezterm.action { AdjustPaneSize = { 'Right', 5 } } },
{ key = "1", mods = "LEADER", action=wezterm.action{ActivateTab=0}}, { key = '1', mods = 'LEADER', action = wezterm.action { ActivateTab = 0 } },
{ key = "2", mods = "LEADER", action=wezterm.action{ActivateTab=1}}, { key = '2', mods = 'LEADER', action = wezterm.action { ActivateTab = 1 } },
{ key = "3", mods = "LEADER", action=wezterm.action{ActivateTab=2}}, { key = '3', mods = 'LEADER', action = wezterm.action { ActivateTab = 2 } },
{ key = "4", mods = "LEADER", action=wezterm.action{ActivateTab=3}}, { key = '4', mods = 'LEADER', action = wezterm.action { ActivateTab = 3 } },
{ key = "5", mods = "LEADER", action=wezterm.action{ActivateTab=4}}, { key = '5', mods = 'LEADER', action = wezterm.action { ActivateTab = 4 } },
{ key = "6", mods = "LEADER", action=wezterm.action{ActivateTab=5}}, { key = '6', mods = 'LEADER', action = wezterm.action { ActivateTab = 5 } },
{ key = "7", mods = "LEADER", action=wezterm.action{ActivateTab=6}}, { key = '7', mods = 'LEADER', action = wezterm.action { ActivateTab = 6 } },
{ key = "8", mods = "LEADER", action=wezterm.action{ActivateTab=7}}, { key = '8', mods = 'LEADER', action = wezterm.action { ActivateTab = 7 } },
{ key = "9", mods = "LEADER", action=wezterm.action{ActivateTab=8}}, { key = '9', mods = 'LEADER', action = wezterm.action { ActivateTab = 8 } },
{ key = "&", mods = "LEADER", action=wezterm.action{CloseCurrentTab={confirm=true}}}, { key = '&', mods = 'LEADER', action = wezterm.action { CloseCurrentTab = { confirm = true } } },
{ key = "x", mods = "LEADER", action=wezterm.action{CloseCurrentPane={confirm=true}}}, { key = 'x', mods = 'LEADER', action = wezterm.action { CloseCurrentPane = { confirm = true } } },
{ key = 'Enter', mods = 'ALT', action = act.ToggleFullScreen }, { key = 'Enter', mods = 'ALT', action = act.ToggleFullScreen },
{ key = 'c', mods = 'SUPER', action = act.CopyTo 'Clipboard' }, { key = 'c', mods = 'SUPER', action = act.CopyTo 'Clipboard' },
{ key = 'v', mods = 'SUPER', action = act.PasteFrom 'Clipboard' }, { key = 'v', mods = 'SUPER', action = act.PasteFrom 'Clipboard' },
@ -65,6 +65,7 @@ return {
}, },
}, },
{ key = 'Tab', mods = 'CTRL', action = wezterm.action.DisableDefaultAssignment }, { key = 'Tab', mods = 'CTRL', action = wezterm.action.DisableDefaultAssignment },
},
-- temp fix
front_end = 'WebGpu',
} }
}