diff options
| author | iamcheeseman <[email protected]> | 2026-04-18 11:18:23 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-04-18 11:18:23 -0400 |
| commit | f0bf896d1372c69d8ad7889564a28168954d8123 (patch) | |
| tree | b8d21aa614a7fb4ea14f6362a6ea314b75aad4fb /.local/bin | |
| parent | 08fa714b600045802d0ef1474291b17448dee272 (diff) | |
update
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/tsarbar_status.sh | 20 |
1 files changed, 10 insertions, 10 deletions
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 |
