1
0
Fork 0
dotfiles/.local/bin/statusbar/sb-tasks

6 lines
183 B
Plaintext
Raw Normal View History

2022-07-04 21:36:33 +02:00
#!/bin/sh
2022-08-22 20:33:37 +02:00
# Requires tsp
2022-07-04 21:36:33 +02:00
num=$(tsp -l | awk -v numr=0 -v numq=0 '{if (/running/)numr++; if (/queued/)numq++} END{print numr+numq"("numq")"}')
[ "$num" != "0(0)" ] &&
2022-08-22 20:33:37 +02:00
echo " $num"