Generalize 'sb-tasks' to other taskbars

master
Hektor Misplon 2023-06-14 20:28:48 +02:00
parent 12b1ad09f8
commit 09abdbc57d
1 changed files with 2 additions and 9 deletions

View File

@ -2,13 +2,6 @@
num_done="$(task end.after:today status:completed count)"
num_pending="$(($(task count status:pending) + $num_done))"
num_waiting="$(($(task count status:waiting)))"
if [ "$num_done" -ge "$num_pending" ];then
color="\x01"
elif [ "$num_done" -ge "$((num_pending/2))" ]; then
color="\x03"
else
color="\x04"
fi
echo -n -e "$color Tasks: $num_done/$num_pending \x01"
echo -e "Tasks: $num_done/$num_pending+$num_waiting"