darkrc/wezterm/wezterm.lua

33 lines
693 B
Lua
Raw Normal View History

2024-07-22 20:51:59 +00:00
local wezterm = require "wezterm"
2024-08-03 16:12:09 +00:00
require("variables").listen()
2024-07-22 20:51:59 +00:00
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"
2024-08-03 16:12:09 +00:00
config.default_prog = { 'zsh', '--login' }
2024-08-12 07:59:52 +00:00
config.audible_bell = "Disabled"
2024-07-23 09:30:30 +00:00
2024-07-22 20:51:59 +00:00
local darkfile = os.getenv("HOME") .. "/.dark"
wezterm.add_to_config_reload_watch_list(darkfile)
if io.open(darkfile) then
config.color_scheme = "lovelace"
2024-07-22 20:51:59 +00:00
else
config.color_scheme = "Londontube (light) (terminal.sexy)"
2024-07-22 20:51:59 +00:00
end
return config