57 lines
3.1 KiB
Lua
57 lines
3.1 KiB
Lua
local wezterm = require 'wezterm'
|
|
local act = wezterm.action
|
|
|
|
wezterm.on('update-right-status', function(window, pane)
|
|
window:set_right_status(window:active_workspace())
|
|
end)
|
|
|
|
return {
|
|
check_for_updates = false,
|
|
color_scheme = "tokyonight",
|
|
font = wezterm.font("JetBrains Mono"),
|
|
font_size = 16,
|
|
dpi = 144,
|
|
leader = { key="b", mods="SUPER|CTRL", timeout_milliseconds = 1000 },
|
|
disable_default_key_bindings = true,
|
|
default_prog = { "/Users/salar/.nix-profile/bin/fish" },
|
|
keys = {
|
|
{ key = "-", mods = "LEADER", action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}},
|
|
{ key = "'", mods = "LEADER", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}},
|
|
{ key = "z", mods = "LEADER", action=act.TogglePaneZoomState },
|
|
{ key = "c", mods = "LEADER", action=wezterm.action{SpawnTab="CurrentPaneDomain"}},
|
|
{ key = "h", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Left"}},
|
|
{ key = "j", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Down"}},
|
|
{ key = "k", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Up"}},
|
|
{ key = "l", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Right"}},
|
|
{ key = "H", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Left", 5}}},
|
|
{ key = "J", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Down", 5}}},
|
|
{ key = "K", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Up", 5}}},
|
|
{ key = "L", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Right", 5}}},
|
|
{ key = "1", mods = "LEADER", action=wezterm.action{ActivateTab=0}},
|
|
{ key = "2", mods = "LEADER", action=wezterm.action{ActivateTab=1}},
|
|
{ key = "3", mods = "LEADER", action=wezterm.action{ActivateTab=2}},
|
|
{ key = "4", mods = "LEADER", action=wezterm.action{ActivateTab=3}},
|
|
{ key = "5", mods = "LEADER", action=wezterm.action{ActivateTab=4}},
|
|
{ key = "6", mods = "LEADER", action=wezterm.action{ActivateTab=5}},
|
|
{ key = "7", mods = "LEADER", action=wezterm.action{ActivateTab=6}},
|
|
{ key = "8", mods = "LEADER", action=wezterm.action{ActivateTab=7}},
|
|
{ key = "9", mods = "LEADER", action=wezterm.action{ActivateTab=8}},
|
|
{ key = "&", mods = "LEADER", action=wezterm.action{CloseCurrentTab={confirm=true}}},
|
|
{ key = "x", mods = "LEADER", action=wezterm.action{CloseCurrentPane={confirm=true}}},
|
|
{ key = 'Enter', mods = 'ALT', action = act.ToggleFullScreen },
|
|
{ key = 'c', mods = 'SUPER', action = act.CopyTo 'Clipboard' },
|
|
{ key = 'v', mods = 'SUPER', action = act.PasteFrom 'Clipboard' },
|
|
{ key = 'n', mods = 'SUPER', action = act.SpawnWindow },
|
|
{ key = 't', mods = 'SUPER', action = act.SpawnTab 'CurrentPaneDomain' },
|
|
{ key = 'q', mods = 'SUPER', action = act.QuitApplication },
|
|
{ key = 'i', mods = 'CTRL|SHIFT', action = act.SwitchToWorkspace },
|
|
{
|
|
key = '9',
|
|
mods = 'ALT',
|
|
action = act.ShowLauncherArgs {
|
|
flags = 'FUZZY|WORKSPACES',
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|