From a4b475bc1eda84636f70c4e4888cc597c4ef821c Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Fri, 1 May 2026 10:28:56 -0400 Subject: [PATCH] support runes for scrolling song title --- scripts/scrolling-title.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/scrolling-title.nix b/scripts/scrolling-title.nix index 0bafa1b..91d0838 100644 --- a/scripts/scrolling-title.nix +++ b/scripts/scrolling-title.nix @@ -20,5 +20,7 @@ pkgs.writeShellApplication { INDEX=$(( T % LEN )) # Output the scrolled window - echo "$STR$STR" | cut -c "$((INDEX + 1))-$((INDEX + WIDTH))"''; + DOUBLE_STR="''$STR''$STR" + echo "''${DOUBLE_STR:''$INDEX:''$WIDTH}" +''; } -- 2.54.0