From f0bf896d1372c69d8ad7889564a28168954d8123 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Sat, 18 Apr 2026 11:18:23 -0400 Subject: update --- .local/bin/tsarbar_status.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to '.local') diff --git a/.local/bin/tsarbar_status.sh b/.local/bin/tsarbar_status.sh index 3fe67fb..b1eeb83 100755 --- a/.local/bin/tsarbar_status.sh +++ b/.local/bin/tsarbar_status.sh @@ -74,16 +74,16 @@ done & playerctl -F metadata -f "{{lc(status)}} {{lc(title)}} - {{lc(artist)}}" \ | while read -r line; do - status=`echo $line | awk '{ print $1 }'` - case "$status" in - "paused") - tsarc set player -text "no media" - ;; - "playing") - tsarc set player -text \ - "`echo $line | awk 'match($0, $1) {print substr($0, RSTART+RLENGTH)}' | trim`" - ;; - esac + status=`echo $line | awk '{ print $1 }'` + case "$status" in + "paused") + tsarc set player -text "no media" + ;; + "playing") + tsarc set player -text \ + "`echo $line | awk 'match($0, $1) {print substr($0, RSTART+RLENGTH)}' | trim`" + ;; + esac done & while true; do -- cgit v1.3-2-g0d8e