fix(alacritty): backport downstream configuration
All checks were successful
/ check (nvimDev) (push) Successful in 5s
/ check (nvimHeadless) (push) Successful in 2s
/ check (nvimNoBundledBins) (push) Successful in 4s
/ check (nvimNoLsp) (push) Successful in 4s
/ check (nvimNoTSGrammars) (push) Successful in 5s
/ check (treefmt) (push) Successful in 2s
/ check-renovaterc (push) Successful in 2s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 1s
/ build (nvim) (push) Successful in 1s
/ report-size (push) Successful in 3s

- 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;