From aaa635f25ef9eb5ca970d6752a4b0f0d2a7b8e6e Mon Sep 17 00:00:00 2001 From: kenji Date: Sat, 3 Jan 2026 09:25:28 -0600 Subject: [PATCH] fix(screensaver): line increase to prevent branding from moving after the effect is finished --- apps/ghostty/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ghostty/default.nix b/apps/ghostty/default.nix index ca7fc12..dce2b37 100644 --- a/apps/ghostty/default.nix +++ b/apps/ghostty/default.nix @@ -4,6 +4,7 @@ ... }: { home.packages = [ + # TODO: will rewrite later (pkgs.writeShellScriptBin "tte-loop" '' trap 'printf "\e[?25h"; exit 0' INT printf '\e[?25l' @@ -14,7 +15,7 @@ lines=$(tput lines) effect="''${effects[RANDOM % ''${#effects[@]}]}" printf '\e[?25l' - ${pkgs.terminaltexteffects}/bin/tte --input-file ${config.home.homeDirectory}/.config/nixos/assets/branding.txt --anchor-canvas c --anchor-text c --canvas-width "$cols" --canvas-height "$((lines-1))" --frame-rate 120 "$effect" + ${pkgs.terminaltexteffects}/bin/tte --input-file ${config.home.homeDirectory}/.config/nixos/assets/branding.txt --anchor-canvas c --anchor-text c --canvas-width "$cols" --canvas-height "$((lines-2))" --frame-rate 120 "$effect" printf '\e[?25l' sleep 2 done