aboutsummaryrefslogtreecommitdiff
path: root/scripts/sdep-checkpast
blob: e5686fbdb3fcc032bc954d670aab890f9e02a987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Run this at boot to receive a notification about past events that you might
# have missed (based on sdep-list).

# 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