summaryrefslogtreecommitdiffstats
path: root/reminder
blob: 9ae7a59aefe6b2dbad6ae9d3232b461f539d32a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/zsh
#sleep 60
export DISPLAY=":0"
tasks="$(print -n ~/.tasks/*.remain 2>/dev/null | wc -l)"
#cookie="$(fortune -n 200 -a -s matrix calvin house computers paradoxum issa-haiku humorists archlinux linuxcookie debian goedel literature tbbt perl startrek the-godfather science linux  wisdom | tr -d '<' | tr '>' ':')"
cookie="$(fortune -n 200 -a -s | tr -d '<' | tr '>' ':')"

#~/bin/notify-send "Reminder" "Tasks left: <b>$tasks</b>

#<i>$(date -R)</i>
#----------------------
#$cookie"
~/bin/notify-send "Reminder" "^i(/home/raghavendra/.notify-icons/reminder.xpm)Tasks left:$tasks | $(date -R) | $cookie"
exit 0
#sleep 2
#mtasks="
#"
#counter=1

#if [[ $tasks > 0 ]];then
    #for t in ~/.tasks/*.remain;do
        #mtasks="$mtasks
        #Task#$counter: ${t:r:t}
        #$(cat $t)
        #"
        #counter=$(($counter+1))
        #if [[ $counter > 4 ]];then break;fi
    #done
#fi
#~/bin/notify-send "$mtasks"