.dotfiles/configs/wezterm/wezterm.lua

31 lines
778 B
Lua
Raw Normal View History

2022-08-23 14:58:15 +02:00
local wezterm = require("wezterm")
2022-09-02 16:15:54 +02:00
local padding = 30
2022-10-06 21:14:32 +02:00
local function scheme_for_appearance(appearance)
if appearance:find("Dark") then
return "3024 Night"
else
return "Catppuccin Latte"
end
end
2022-08-23 14:58:15 +02:00
return {
font = wezterm.font("FiraCodeNerdFont"),
font_size = 13,
-- You can specify some parameters to influence the font selection;
-- for example, this selects a Bold, Italic font variant.
2022-09-02 16:15:54 +02:00
-- color_scheme = "Batman",
2022-08-23 14:58:15 +02:00
use_fancy_tab_bar = false,
hide_tab_bar_if_only_one_tab = true,
2022-09-02 16:15:54 +02:00
alternate_buffer_wheel_scroll_speed = 1,
2022-10-06 21:14:32 +02:00
color_scheme = scheme_for_appearance(wezterm.gui.get_appearance()),
2022-09-02 16:15:54 +02:00
window_close_confirmation = "AlwaysPrompt",
window_padding = {
left = padding,
right = padding,
top = padding,
bottom = padding,
},
2022-08-23 14:58:15 +02:00
}