#!/bin/sh #TODO: add color levels to the todo counter: >5 task - orange, >7 red, etc incount=$(task +PENDING +in count) todocount=$(task +PENDING -in count) inbox_icon=$(echo -en "\uf01c") todo_icon=$(echo -en "\uf071") if [ $incount -gt 0 ] then inbox_out=$(echo -en "$inbox_icon $incount") fi if [ $todocount -gt 0 ] then todo_out=$(echo -en "$todo_icon $todocount") fi [ "$todo_out" ] && [ "$inbox_out" ] && separator=$(echo "") if [ "$todo_out" ] || [ "$inbox_out" ] then echo -e "$todo_out$separator$inbox_out" fi