]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Enhance icalBuddy output
authorAlexander Barton <alex@barton.de>
Sat, 15 Mar 2014 13:52:12 +0000 (14:52 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 15 Mar 2014 13:52:12 +0000 (14:52 +0100)
- add list of due tasks
- update output format (don't use grep any more)

sys/profile

index 7a0435c11e690ea26b422e640da0b4f5f885484d..37af75e50ffe60944c8976265aba9aac120fb451 100644 (file)
@@ -164,8 +164,12 @@ if [ $? -eq 0 -a "$UID" -ne 0 ]; then
                *.UTF*) bul="•"; bul_imp="!"; sep="»"; ;;
                *)      bul="*"; bul_imp="!"; sep=">"; ;;
        esac
-       icalBuddy -f -n -npn -nc -b " $BUL " -ps "/ $SEP /" -eep "url,notes" \
-               eventsToday+1 2>/dev/null | grep "$BUL"
+       icalBuddy -f -n -b " $bul " -ab " $bul_imp " -ps "/ $sep /" \
+               -nc -npn -iep "title,due" -stda \
+               tasksDueBefore:today 2>/dev/null
+       icalBuddy -f -n -b " $bul " -ab " $bul_imp " -ps "/ $sep /" \
+               -nc -npn -iep "title,datetime" \
+               eventsToday+1 2>/dev/null
        [ $? -eq 0 ] && echo
        unset bul bul_imp sep
 else