Add wezterm setup
This commit is contained in:
parent
ceaec45f54
commit
76f102b21d
7 changed files with 87 additions and 68 deletions
10
templates/wezterm/includes/colors.lua.j2
Normal file
10
templates/wezterm/includes/colors.lua.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- {{ ansible_managed }}
|
||||
|
||||
return {
|
||||
colors = {
|
||||
-- The default text color
|
||||
foreground = 'black',
|
||||
-- The default background color
|
||||
background = 'white'
|
||||
}
|
||||
}
|
||||
14
templates/wezterm/includes/fonts.lua.j2
Normal file
14
templates/wezterm/includes/fonts.lua.j2
Normal 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'
|
||||
}
|
||||
17
templates/wezterm/includes/window.lua.j2
Normal file
17
templates/wezterm/includes/window.lua.j2
Normal 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,
|
||||
}
|
||||
}
|
||||
22
templates/wezterm/wezterm.lua.j2
Normal file
22
templates/wezterm/wezterm.lua.j2
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue