From ba2fcd5e60fbfeb0edb1f2b6d1e904ebe42fc6f5 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Fri, 1 May 2026 11:56:24 -0400 Subject: format --- scripts/scrolling-title.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'scripts') 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}" -''; + ''; } -- cgit v1.3.1