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

6 lines
183 B
Bash
Executable File

#!/bin/sh
# Requires tsp
num=$(tsp -l | awk -v numr=0 -v numq=0 '{if (/running/)numr++; if (/queued/)numq++} END{print numr+numq"("numq")"}')
[ "$num" != "0(0)" ] &&
echo "$num"