diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-05-01 11:56:24 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-05-01 11:56:24 -0400 |
| commit | ba2fcd5e60fbfeb0edb1f2b6d1e904ebe42fc6f5 (patch) | |
| tree | f0a7743c3579bc82c9161c3d2eb9938d8b211036 /scripts | |
| parent | support runes for scrolling song title (diff) | |
| download | nixos-ba2fcd5e60fbfeb0edb1f2b6d1e904ebe42fc6f5.tar.gz nixos-ba2fcd5e60fbfeb0edb1f2b6d1e904ebe42fc6f5.tar.bz2 nixos-ba2fcd5e60fbfeb0edb1f2b6d1e904ebe42fc6f5.zip | |
format
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/scrolling-title.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/scrolling-title.nix b/scripts/scrolling-title.nix index 91d0838..0351fa9 100644 --- a/scripts/scrolling-title.nix +++ b/scripts/scrolling-title.nix @@ -1,13 +1,16 @@ { pkgs }: pkgs.writeShellApplication { name = "scrolling-title"; - runtimeInputs = with pkgs; [ mpc coreutils ]; + runtimeInputs = with pkgs; [ + mpc + coreutils + ]; text = '' WIDTH=16 PADDING=" " - + RAW_STR=$(mpc current) - + if [ -z "$RAW_STR" ]; then echo "Stopped" exit 0 @@ -22,5 +25,5 @@ pkgs.writeShellApplication { # Output the scrolled window DOUBLE_STR="''$STR''$STR" echo "''${DOUBLE_STR:''$INDEX:''$WIDTH}" -''; + ''; } |
