.dotfiles/configs/wezterm/wezterm.lua

50 lines
1.2 KiB
Lua
Raw Normal View History

2022-11-16 23:37:05 +01:00
local wezterm = require("wezterm")
2022-08-23 14:58:15 +02:00
2022-11-16 23:37:05 +01:00
local padding = 30
2022-09-02 16:15:54 +02:00
2022-11-16 23:37:05 +01:00
local function scheme_for_appearance(appearance)
if appearance:find("Dark") then
return "3024 Night"
2022-10-06 21:14:32 +02:00
else
2022-11-16 23:37:05 +01:00
return "Catppuccin Latte"
2022-10-06 21:14:32 +02:00
end
2022-11-16 23:37:05 +01:00
end
2022-10-06 21:14:32 +02:00
2023-01-25 16:35:57 +01:00
local wsl_domains = wezterm.default_wsl_domains()
-- Always use zsh in my WSL. but really: I recommend running `chsh` inside WSL to make it the default!
for _, dom in ipairs(wsl_domains) do
dom.default_cwd = "/home/max"
print(dom.name)
end
2022-08-23 14:58:15 +02:00
return {
2022-11-17 23:38:29 +01:00
font = wezterm.font_with_fallback {
"FiraCodeNerdFont",
"Noto Color Emoji"
},
2023-01-25 16:35:57 +01:00
wsl_domains = wsl_domains,
2022-11-16 23:37:05 +01:00
font_size = 13,
-- You can specify some parameters to influence the font selection;
-- for example, this selects a Bold, Italic font variant.
-- color_scheme = "Batman",
use_fancy_tab_bar = false,
hide_tab_bar_if_only_one_tab = true,
alternate_buffer_wheel_scroll_speed = 1,
color_scheme = scheme_for_appearance(wezterm.gui.get_appearance()),
window_close_confirmation = "AlwaysPrompt",
2022-12-23 02:32:21 +01:00
keys = {
{
key = 'U',
mods = 'CMD|SHIFT',
action = wezterm.action.Nop,
},
},
2022-11-16 23:37:05 +01:00
window_padding = {
left = padding,
right = padding,
top = padding,
bottom = padding,
},
2022-08-23 14:58:15 +02:00
}