From: Skullheadx Date: Fri, 1 May 2026 16:53:00 +0000 (-0400) Subject: fix scrolling title script X-Git-Url: http://git.skullheadx.com/pfp.webp?a=commitdiff_plain;h=0752b35f348246f5b27aa3fb778c1bb416db1c1a;p=nixos.git fix scrolling title script --- diff --git a/scripts/scrolling-title.nix b/scripts/scrolling-title.nix index 0351fa9..05eaa53 100644 --- a/scripts/scrolling-title.nix +++ b/scripts/scrolling-title.nix @@ -6,8 +6,8 @@ pkgs.writeShellApplication { coreutils ]; text = '' - WIDTH=16 - PADDING=" " + WIDTH=20 + PADDING=" " RAW_STR=$(mpc current) @@ -23,7 +23,7 @@ pkgs.writeShellApplication { INDEX=$(( T % LEN )) # Output the scrolled window - DOUBLE_STR="''$STR''$STR" + DOUBLE_STR="''$STR''$STR''$STR" echo "''${DOUBLE_STR:''$INDEX:''$WIDTH}" ''; }