2024-09-14 18:55:44 +05:30
|
|
|
local wezterm = require("wezterm")
|
|
|
|
|
|
|
|
|
|
local config = {
|
|
|
|
|
enable_tab_bar = false,
|
|
|
|
|
window_decorations = "RESIZE",
|
|
|
|
|
window_close_confirmation = "NeverPrompt",
|
2024-09-14 21:56:43 +05:30
|
|
|
font = wezterm.font("MesloLGS Nerd Font Mono"),
|
2024-09-14 18:55:44 +05:30
|
|
|
font_size = 14.0,
|
|
|
|
|
-- color_scheme = "Catppuccin Mocha",
|
|
|
|
|
color_scheme = "Carbon Fox",
|
2024-09-16 03:19:04 +05:30
|
|
|
window_background_opacity = 0.85,
|
2024-09-14 18:55:44 +05:30
|
|
|
window_padding = {
|
2024-09-16 03:19:04 +05:30
|
|
|
left = 2,
|
|
|
|
|
right = 2,
|
|
|
|
|
top = 2,
|
|
|
|
|
bottom = 2,
|
2024-09-14 18:55:44 +05:30
|
|
|
},
|
2024-09-16 03:19:04 +05:30
|
|
|
macos_window_background_blur = 10,
|
2024-09-14 18:55:44 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config.leader = { key = "d", mods = "CTRL", timeout_milliseconds = 1000 }
|
|
|
|
|
config.keys = {
|
|
|
|
|
{
|
|
|
|
|
key = "|",
|
|
|
|
|
mods = "LEADER",
|
|
|
|
|
action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key = "-",
|
|
|
|
|
mods = "LEADER",
|
|
|
|
|
action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }),
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-- uncomment this if not using with some wm
|
|
|
|
|
local mux = wezterm.mux
|
|
|
|
|
|
|
|
|
|
wezterm.on("gui-startup", function()
|
|
|
|
|
local _, _, window = mux.spawn_window({})
|
|
|
|
|
window:gui_window():maximize()
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
return config
|