Add wezterm setup

This commit is contained in:
Sonny Bakker 2024-08-30 12:58:29 +02:00
parent ceaec45f54
commit 76f102b21d
7 changed files with 87 additions and 68 deletions

View file

@ -0,0 +1,10 @@
-- {{ ansible_managed }}
return {
colors = {
-- The default text color
foreground = 'black',
-- The default background color
background = 'white'
}
}

View file

@ -0,0 +1,14 @@
-- {{ ansible_managed }}
local wezterm = require 'wezterm';
return {
font = wezterm.font(
'MonaspiceNe Nerd Font Mono',
{ weight = 'Regular', stretch = 'Normal', style = 'Normal' }
),
font_size = 11,
freetype_load_target = 'Light',
freetype_render_target = 'HorizontalLcd'
}

View file

@ -0,0 +1,17 @@
-- {{ ansible_managed }}
return {
-- disable the tabbar
enable_tab_bar = false,
-- window size
initial_cols = 145,
initial_rows = 35,
window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
}

View file

@ -0,0 +1,22 @@
-- {{ ansible_managed }}
local wezterm = require 'wezterm';
local config = wezterm.config_builder();
config.term = 'wezterm';
local modules = {
'colors',
'fonts',
'window',
}
for _, module_name in pairs(modules) do
local module_path = string.format('includes.%s', module_name)
local module = require(module_path)
for key, value in pairs(module) do
config[key] = value;
end
end
return config