Add wezterm configuration

This commit is contained in:
Talia 2024-07-22 22:51:59 +02:00
parent 3176e0b936
commit 6c9dc5a0f3
Signed by: darkwiiplayer
GPG Key ID: 7808674088232B3E
2 changed files with 27 additions and 0 deletions

0
wezterm/.luarc.json Normal file
View File

27
wezterm/wezterm.lua Normal file
View File

@ -0,0 +1,27 @@
local wezterm = require "wezterm"
local config = wezterm.config_builder()
config.hide_tab_bar_if_only_one_tab = true
local padding = 2
config.window_padding = {
left = (padding * 1) .. "cell",
right = (padding * 1) .. "cell",
top = (padding * .4) .. "cell",
bottom = (padding * .4) .. "cell"
}
config.font = wezterm.font "Fira Code"
local darkfile = os.getenv("HOME") .. "/.dark"
wezterm.add_to_config_reload_watch_list(darkfile)
if io.open(darkfile) then
config.color_scheme = "Apprentice (base16)"
else
config.color_scheme = "Atelier Plateau Light (base16)"
end
return config