summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scripts/scrolling-title.nix4
1 files changed, 3 insertions, 1 deletions
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}"
+'';
}