Skip to content

Commit

Permalink
.wezterm.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
zy9306 committed Dec 20, 2024
1 parent cb8cc77 commit 9feec95
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions dotfiles/wezterm/.wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
local wezterm = require("wezterm")
local config = wezterm.config_builder()
local act = wezterm.action

config.color_scheme = "catppuccin-latte"

config.font = wezterm.font("Iosevka", { weight = "Medium" })
config.font_size = 15.5

config.window_frame = {
font_size = 14.5,
}

config.enable_tab_bar = true

config.keys = {
-- https://github.com/wez/wezterm/issues/522
{
key = "E",
mods = "CTRL|SHIFT",
action = act.PromptInputLine({
description = "Enter new name for tab",
action = wezterm.action_callback(function(window, pane, line)
if line then
window:active_tab():set_title(line)
end
end),
}),
},

{ key = "F9", action = wezterm.action.ShowTabNavigator },

{ key = "r", mods = "ALT", action = act.ActivateWindowRelative(1) },
{ key = "e", mods = "ALT", action = act.ActivateWindowRelative(-1) },
{ key = "r", mods = "CMD", action = act.ActivateWindowRelative(1) },
{ key = "e", mods = "CMD", action = act.ActivateWindowRelative(-1) },

{
key = "b",
mods = "CMD",
action = wezterm.action.SendKey({ key = "b", mods = "ALT" }),
},
{
key = "f",
mods = "CMD",
action = wezterm.action.SendKey({ key = "f", mods = "ALT" }),
},
{
key = "Backspace",
mods = "CMD",
action = wezterm.action.SendKey({ key = "Backspace", mods = "ALT" }),
},
{
key = "d",
mods = "CMD",
action = wezterm.action.SendKey({ key = "d", mods = "ALT" }),
},
}

return config

0 comments on commit 9feec95

Please sign in to comment.