3 # Show reminders (once every 60 minutes)
4 if [ -z `find ~/.last_reminder -mmin -60 2>/dev/null` ]; then
5 if [ "$(type icalBuddy 2>/dev/null)" -a "$LOGNAME" != "root" ]; then
8 *.UTF*) bul="•"; bul_imp="!"; sep="»"; ;;
9 *) bul="*"; bul_imp="!"; sep=">"; ;;
11 icalBuddy -f -n -b " $bul " -ab " $bul_imp " -ps "/ $sep /" \
12 -nc -npn -iep "title,due" -stda \
13 tasksDueBefore:today 2>/dev/null
14 icalBuddy -f -n -b " $bul " -ab " $bul_imp " -ps "/ $sep /" \
15 -nc -npn -iep "title,datetime" \
16 eventsToday+1 2>/dev/null
19 [ -w ~/ ] && touch ~/.last_reminder
20 elif [ "$(type remind 2>/dev/null)" -a -r ~/.remind ]; then
22 remind -h -g -t5 ~/.remind | \
23 grep -v '^Reminders for ' | grep -v '^$'
25 [ -w ~/ ] && touch ~/.last_reminder