Fix alacritty scaling issues

This commit is contained in:
Filippo Berto 2023-04-19 12:36:01 +02:00
parent 3e5f48889a
commit df8128936c
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -28,12 +28,20 @@ in
programs.alacritty = {
enable = true;
settings = {
key_bindings = [{
key = "Return";
mods = "Control|Shift";
action = "SpawnNewInstance";
}];
# env.TERM = "xterm-256color";
env.TERM = "alacritty";
env = {
TERM = "alacritty";
WINIT_X11_SCALE_FACTOR = "1";
};
scrolling.history = 3000;
font = {
normal.family = pkgs.rice.font.monospace.name;
size = pkgs.rice.font.monospace.size / 1.5; # Font size is broken
inherit (pkgs.rice.font.monospace) size;
};
window.opacity = pkgs.rice.opacity;
mouse = {