diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-02-20 22:51:57 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-02-20 22:51:57 +0900 |
| commit | 2e6f8748934cc15d8b3482a005984617f36d4aec (patch) | |
| tree | 2d08f1391e5f99656698683bebd96dd4eff2c7c5 | |
| parent | fb9b336682941b049d908a332d73d55f3d72651b (diff) | |
modified statusbar/sb-queues
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-queues | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.local/bin/statusbar/sb-queues b/ar/.local/bin/statusbar/sb-queues index 477fa7f..ac7cb55 100755 --- a/ar/.local/bin/statusbar/sb-queues +++ b/ar/.local/bin/statusbar/sb-queues @@ -22,7 +22,7 @@ EOF } # This block displays the number of running and queued background tasks. Requires tsp. -num=$(tsp -l | awk -v numr=0 -v numq=0 '{if (!/notify-send/ && /running/) numr++; if (!/notify-send/ && /queued/) numq++} END{print numr"|"numr+numq}') +num=$(tsp -l | awk -v numr=0 -v numq=0 '{if (!/notify-send/ && /running/) numr++; if (!/notify-send/ && /queued/) numq++} END{print numr"/"numr+numq}') # Handle mouse clicks case $BLOCK_BUTTON in @@ -37,4 +37,4 @@ case $BLOCK_BUTTON in 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac -[ -f /tmp/qplaylist ] && cat /tmp/qplaylist 2>/dev/null || ([ "$num" != "0|0" ] && echo "🤖$num" || echo "") +[ -f /tmp/qplaylist ] && cat /tmp/qplaylist 2>/dev/null || ([ "$num" != "0/0" ] && echo "🤖$num" || echo "") |
