fix(alacritty): backport downstream configuration

- Set `mouse.hide_when_typing`
- Use `zellij` when it is enabled
This commit is contained in:
Jalil David Salamé Messina 2025-03-10 21:41:01 +01:00
parent 4b919d37d5
commit 7cf2ccdc19
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -108,7 +108,15 @@ in
return config
'';
};
alacritty.enable = cfg.terminal == "alacritty";
alacritty.settings = {
enable = cfg.terminal == "alacritty";
# hide mouse when typing, this ensures I don't have to move the mouse when it hides text
mouse.hide_when_typing = true;
# Start zellij when it is enabled
terminal.shell = lib.mkIf (config.jhome.dev.enable && config.programs.zellij.enable) {
program = "${lib.getExe config.programs.zellij.package}";
};
};
zellij.enable = cfg.terminal == "alacritty"; # alacritty has no terminal multiplexer built-in
# PDF reader
zathura.enable = true;