feat: init wezterm config
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-04-09 14:50:51 -04:00
parent ec0576965f
commit 52d89f41eb
2 changed files with 52 additions and 0 deletions

51
home/wezterm/default.nix Normal file
View file

@ -0,0 +1,51 @@
{...}: {
programs = {
wezterm = {
enable = true;
extraConfig =
/*
lua
*/
''
local config = wezterm.config_builder();
-- default stuff
config.disable_default_key_bindings = true;
config.enable_wayland = false;
-- theme & appearance
config.color_scheme = 'Dracula';
config.xcursor_theme = 'Dracula-cursors';
config.hide_tab_bar_if_only_one_tab = true;
config.window_background_opacity = 0.8;
config.window_padding = {
top = '10px',
right = '2px',
bottom = '10px',
left = 0,
};
-- disable ligatures
config.harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' };
config.font = wezterm.font('JetBrains Mono');
-- scrollback
config.enable_scroll_bar = true;
config.scrollback_lines = 3500;
config.keys = {
{
-- Spawn a window with from the cwd
key = 'Enter',
mods = 'SHIFT|CTRL',
action = wezterm.action.SpawnWindow,
},
};
return config;
'';
};
};
}

View file

@ -17,6 +17,7 @@ in {
../../home/foot.nix ../../home/foot.nix
../../home/mpv ../../home/mpv
../../home/obs.nix ../../home/obs.nix
../../home/wezterm
../../home/wofi ../../home/wofi
({config, ...}: let ({config, ...}: let