Generalize 'sb-tasks' to other taskbars
parent
12b1ad09f8
commit
09abdbc57d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue