diff options
Diffstat (limited to '')
| -rw-r--r-- | scripts/scrolling-title.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/scrolling-title.nix b/scripts/scrolling-title.nix index 05eaa53..70a6dd7 100644 --- a/scripts/scrolling-title.nix +++ b/scripts/scrolling-title.nix @@ -1,4 +1,4 @@ -{ pkgs }: +{pkgs}: pkgs.writeShellApplication { name = "scrolling-title"; runtimeInputs = with pkgs; [ @@ -7,7 +7,7 @@ pkgs.writeShellApplication { ]; text = '' WIDTH=20 - PADDING=" " + PADDING=" " RAW_STR=$(mpc current) @@ -17,7 +17,7 @@ pkgs.writeShellApplication { fi STR="$RAW_STR$PADDING" - LEN=''${#STR} + LEN=''${#STR} T=$(date +%s) INDEX=$(( T % LEN )) |
