diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-05-01 10:28:56 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-05-01 10:28:56 -0400 |
| commit | a4b475bc1eda84636f70c4e4888cc597c4ef821c (patch) | |
| tree | b5068d9fac907881181e12cf6b677a41419893ed | |
| parent | add dmenu (diff) | |
| download | nixos-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.nix | 4 |
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}" +''; } |
