From 7cf2ccdc199fdb5f4b8286ef3f0179226edf16ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Mon, 10 Mar 2025 21:41:01 +0100 Subject: [PATCH] fix(alacritty): backport downstream configuration - Set `mouse.hide_when_typing` - Use `zellij` when it is enabled --- home/gui/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home/gui/default.nix b/home/gui/default.nix index 8ff3d93..824fb99 100644 --- a/home/gui/default.nix +++ b/home/gui/default.nix @@ -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;