From: Skullheadx Date: Fri, 1 May 2026 14:28:56 +0000 (-0400) Subject: support runes for scrolling song title X-Git-Url: http://git.skullheadx.com/nixos/static/gitweb.js?a=commitdiff_plain;h=a4b475bc1eda84636f70c4e4888cc597c4ef821c;p=nixos.git support runes for scrolling song title --- 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}" +''; }