feat(wezterm): initial commit

The initial release of the rootiest-wezterm config

BREAKING CHANGE: First Commit!
This commit is contained in:
2024-08-16 14:50:01 -04:00
commit 35ec6f0de6
13 changed files with 517 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ COLORS │
-- ╰─────────────────────────────────────────────────────────╯
return {
-- Color Scheme
color_scheme = "Catppuccin Frappe",
-- Tab Bar Colors
colors = {
tab_bar = {
inactive_tab_edge = "#484D69",
active_tab = {
bg_color = "#CA9EE6",
fg_color = "#232634",
intensity = "Normal",
underline = "None",
italic = false,
strikethrough = false,
},
inactive_tab = {
bg_color = "#484D69",
fg_color = "#C6D0F5",
},
inactive_tab_hover = {
bg_color = "#3b3052",
fg_color = "#C6D0F5",
italic = true,
intensity = "Bold",
},
new_tab = {
bg_color = "#737994",
fg_color = "#C6D0F5",
intensity = "Bold",
underline = "None",
italic = false,
strikethrough = false,
},
new_tab_hover = {
bg_color = "#3b3052",
fg_color = "#C6D0F5",
italic = true,
intensity = "Bold",
},
},
},
-- Titlebar Colors
window_frame = {
active_titlebar_bg = "#232634",
inactive_titlebar_bg = "#303446",
},
-- Terminal Variable
term = "wezterm",
}
+46
View File
@@ -0,0 +1,46 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ FONTS │
-- ╰─────────────────────────────────────────────────────────╯
return {
-- Terminal Font
font = WEZTERM.font({
family = "Iosevka",
weight = "Regular",
harfbuzz_features = {
"VSAH=7",
"VSAF=3",
"VSAI=3",
"VSAJ=8",
"VSAM=4",
"VLAB=5",
"cv10=7",
"cv41=3",
"cv44=6",
"cv07=4",
},
}),
font_size = 12.0,
-- Fancy Tab Bar Font
window_frame = {
font = WEZTERM.font({
family = "Iosevka",
weight = "Medium",
harfbuzz_features = {
"VSAH=7",
"VSAF=3",
"VSAI=3",
"VSAJ=8",
"VSAM=4",
"VLAB=5",
"cv10=7",
"cv41=3",
"cv44=6",
"cv07=4",
},
}),
font_size = 11,
},
-- Cursor Shape
default_cursor_style = "BlinkingBar",
}
+50
View File
@@ -0,0 +1,50 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ KEYS │
-- ╰─────────────────────────────────────────────────────────╯
-- Define action table
local act = WEZTERM.action
return {
leader = { key = " ", mods = "CTRL", timeout_milliseconds = 1500 },
keys = {
{ key = "a", mods = "LEADER|CTRL", action = WEZTERM.action.SendKey({ key = "a", mods = "CTRL" }) },
{ key = "|", mods = "LEADER|SHIFT", action = WEZTERM.action.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
{ key = "_", mods = "LEADER|SHIFT", action = WEZTERM.action.SplitVertical({ domain = "CurrentPaneDomain" }) },
{ key = "h", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection("Left") },
{ key = "l", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection("Right") },
{ key = "k", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection("Up") },
{ key = "j", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection("Down") },
{ key = "h", mods = "ALT", action = act.AdjustPaneSize({ "Left", 1 }) },
{ key = "l", mods = "ALT", action = act.AdjustPaneSize({ "Right", 1 }) },
{ key = "k", mods = "ALT", action = act.AdjustPaneSize({ "Up", 1 }) },
{ key = "j", mods = "ALT", action = act.AdjustPaneSize({ "Down", 1 }) },
{
key = "s",
mods = "ALT",
action = WEZTERM.action.Multiple({
WEZTERM.action_callback(function(_, _)
RESURRECT.save_state(RESURRECT.workspace_state.get_workspace_state())
end),
}),
},
{
key = "r",
mods = "ALT",
action = WEZTERM.action.Multiple({
WEZTERM.action_callback(function(win, pane)
RESURRECT.fuzzy_load(win, pane, function(id, _)
id = string.match(id, "([^/]+)$")
id = string.match(id, "(.+)%..+$")
local state = RESURRECT.load_state(id, "workspace")
RESURRECT.workspace_state.restore_workspace(state, {
relative = true,
restore_text = true,
on_pane_restore = RESURRECT.tab_state.default_on_pane_restore,
})
end)
end),
}),
},
},
}
+20
View File
@@ -0,0 +1,20 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ WINDOW │
-- ╰─────────────────────────────────────────────────────────╯
return {
-- Set the initial size
initial_cols = 180,
initial_rows = 38,
-- Set the window padding
window_padding = {
left = 0,
right = 0,
top = 10,
bottom = 0,
},
-- Set the animation framerate
animation_fps = 120,
}