aboutsummaryrefslogtreecommitdiff
path: root/scripts/sdep-checkpast
blob: 35a561ccced1e8b8f9b82bbc296fa24e303fc23d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# Run this at boot to receive a notification about past events that you might
# have missed
#
# The events are read from the following files in SDEPDATA folder:
#	once: events that only happen once; full date needs to be specified
#	daily: events that happen every day; only specify the time in HH:MM format
#	weekly: only specify Weekday + time
#	monthly: only specify day of the month + time

# Requires: a command to send notifications such as herbe or notify-send.

#notify="notify-send -t 3600000"
notify=herbe

sdep-list past | \
while read text; do
	date=$(echo "$text" | sed 's/\t.*//')
	event=$(echo "$text" | sed 's/.*\t//')
	$notify "$date" "$event"
done

Generated with cgit - Back to sebastiano.tronto.net