dotfiles_wezterm/wezterm.lua

86 lines
1.6 KiB
Lua
Raw Normal View History

2024-12-18 11:11:12 +00:00
local wezterm = require 'wezterm'
local config = {}
2025-02-04 04:27:14 +00:00
local machine_specific = require("machine_specific")
2024-12-18 11:11:12 +00:00
config.font = wezterm.font 'IosevkaTermSlab Nerd Font Mono'
config.font_size = 11.0
config.cursor_blink_rate = 800
2025-01-06 06:37:14 +00:00
config.window_padding = {
2025-02-01 13:48:45 +00:00
left = "3px",
right = 0,
top = "1px",
bottom = 0,
2025-01-06 06:37:14 +00:00
}
2024-12-28 07:44:13 +00:00
config.window_decorations = "NONE"
config.window_frame = {
2025-02-01 13:48:45 +00:00
inactive_titlebar_bg = '#2d2d2d',
active_titlebar_bg = '#232323',
2024-12-28 07:44:13 +00:00
}
config.use_fancy_tab_bar = false
2025-02-04 04:27:14 +00:00
config.enable_tab_bar = machine_specific.enable_tab_bar
2024-12-18 11:11:12 +00:00
config.colors = {
2025-02-01 13:48:45 +00:00
background = '#101010',
foreground = '#BBBBBB',
2024-12-18 11:11:12 +00:00
2025-02-01 13:48:45 +00:00
cursor_bg = '#22785E',
cursor_fg = '#000000',
2024-12-18 11:11:12 +00:00
2025-02-01 13:48:45 +00:00
selection_fg = '#D3D7CF',
selection_bg = '#262626',
2024-12-18 11:11:12 +00:00
2025-02-01 13:48:45 +00:00
tab_bar = {
active_tab = {
bg_color = "#101010",
fg_color = "#BBBBBB",
},
inactive_tab = {
bg_color = "#232323",
fg_color = "#BBBBBB",
},
},
2024-12-28 07:44:13 +00:00
2025-02-01 13:48:45 +00:00
-- #black, #red, #green, #yellow, #blue, #magenta, #cyan, #white
ansi = {
"#010101", "#d62222", "#3ba04d", "#f6e000", "#1958ff", "#b300b3", "#10bfaf", "#c6c6c6"
},
brights = {
"#606060", "#ff4444", "#3bd04d", "#dfff1f", "#01a9ff", "#f600f6", "#10efdf", "#e9e9e9"
},
2024-12-18 11:11:12 +00:00
}
2024-12-23 08:11:15 +00:00
config.inactive_pane_hsb = {
2025-02-01 13:48:45 +00:00
saturation = 1.0,
brightness = 0.4,
2024-12-23 08:11:15 +00:00
}
2024-12-18 11:11:12 +00:00
config.keys = {
2025-02-01 13:48:45 +00:00
{
key = 'h', mods = 'CTRL',
action = wezterm.action.SplitHorizontal
{
domain = 'CurrentPaneDomain'
},
},
{
key = 'v', mods = 'CTRL',
action = wezterm.action.SplitVertical
{
domain = 'CurrentPaneDomain'
},
},
{
key = 'w', mods = 'CTRL',
action = wezterm.action.CloseCurrentPane
{
confirm = true
},
},
2024-12-18 11:11:12 +00:00
}
return config