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