diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-06-13 23:05:19 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-06-13 23:05:19 -0400 |
| commit | 6bd2d69a5806d9cc498a65ddc7fc79a199140b55 (patch) | |
| tree | 9678f0f2f6d324b66a250d1f7ad2f3889e83bf14 /scripts/scrolling-title.nix | |
| parent | use fira code nerf font (diff) | |
| download | nixos-6bd2d69a5806d9cc498a65ddc7fc79a199140b55.tar.gz nixos-6bd2d69a5806d9cc498a65ddc7fc79a199140b55.tar.bz2 nixos-6bd2d69a5806d9cc498a65ddc7fc79a199140b55.zip | |
format using alejandra
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 )) |
