]> Skullheadx's Git Forge - nixos.git/commitdiff
fix scrolling title script
authorSkullheadx <admonty1@protonmail.com>
Fri, 1 May 2026 16:53:00 +0000 (12:53 -0400)
committerSkullheadx <admonty1@protonmail.com>
Fri, 1 May 2026 16:53:00 +0000 (12:53 -0400)
scripts/scrolling-title.nix

index 0351fa9a428a8d36d60d29ea68093117d18d2709..05eaa5325d0006156355f8895508ed099c1d8beb 100644 (file)
@@ -6,8 +6,8 @@ pkgs.writeShellApplication {
     coreutils
   ];
   text = ''
-    WIDTH=16
-    PADDING="          "
+    WIDTH=20
+    PADDING="        
 
     RAW_STR=$(mpc current)
 
@@ -23,7 +23,7 @@ pkgs.writeShellApplication {
     INDEX=$(( T % LEN ))
 
     # Output the scrolled window
-    DOUBLE_STR="''$STR''$STR"
+    DOUBLE_STR="''$STR''$STR''$STR"
     echo "''${DOUBLE_STR:''$INDEX:''$WIDTH}"
   '';
 }