summaryrefslogtreecommitdiffstats
path: root/scripts/scrolling-title.nix
diff options
context:
space:
mode:
authorSkullheadx <admonty1@protonmail.com>2026-05-01 10:28:56 -0400
committerSkullheadx <admonty1@protonmail.com>2026-05-01 10:28:56 -0400
commita4b475bc1eda84636f70c4e4888cc597c4ef821c (patch)
treeb5068d9fac907881181e12cf6b677a41419893ed /scripts/scrolling-title.nix
parentadd dmenu (diff)
downloadnixos-a4b475bc1eda84636f70c4e4888cc597c4ef821c.tar.gz
nixos-a4b475bc1eda84636f70c4e4888cc597c4ef821c.tar.bz2
nixos-a4b475bc1eda84636f70c4e4888cc597c4ef821c.zip
support runes for scrolling song title
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}"
+'';
}