Try using wezterm as my default terminal

This commit is contained in:
Oliver Davies 2024-05-31 19:13:23 +01:00
parent 430ea10ef6
commit a29372ef99
5 changed files with 22 additions and 38 deletions

View file

@ -1,6 +1,5 @@
{ config, inputs, pkgs, username, }: { { config, inputs, pkgs, username, }: {
imports = [ imports = [
./modules/alacritty.nix
./modules/copyq.nix ./modules/copyq.nix
./modules/dunst.nix ./modules/dunst.nix
./modules/espanso.nix ./modules/espanso.nix

View file

@ -1,34 +0,0 @@
{ lib, pkgs, self, ... }:
let
inherit (lib) strings;
inherit (strings) toInt;
theme = import "${self}/lib/theme" { inherit pkgs; };
in {
programs.alacritty = {
enable = true;
settings = {
env = {
TERM = "screen-256color";
};
window.padding = {
x = 15;
y = 15;
};
font = {
size = toInt "${theme.fonts.monospace.size}";
bold.style = "Regular";
normal.family = "${theme.fonts.monospace.name}";
offset.y = 12;
glyph_offset.y = 6;
};
shell = { program = "zsh"; };
};
};
}

View file

@ -115,7 +115,7 @@
eDP-1 = { scale = "1.0"; }; eDP-1 = { scale = "1.0"; };
}; };
terminal = "alacritty"; terminal = "wezterm";
window.border = 3; window.border = 3;
}; };

View file

@ -6,7 +6,7 @@ in {
tmuxinator.enable = true; tmuxinator.enable = true;
terminal = "screen-256color"; terminal = "xterm-256color";
extraConfig = '' extraConfig = ''
unbind C-b unbind C-b

View file

@ -1,6 +1,25 @@
{ { pkgs, self, ... }:
let
theme = import "${self}/lib/theme" { inherit pkgs; };
in {
programs.wezterm = { programs.wezterm = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
extraConfig = ''
return {
font = wezterm.font "${theme.fonts.monospace.name}",
-- TODO: use theme.fonts.monospace.size
font_size = 14.0,
hide_tab_bar_if_only_one_tab = true,
line_height = 1.5,
window_padding = {
bottom = 10,
left = 10,
right = 10,
top = 10,
}
}
'';
}; };
} }