diff options
Diffstat (limited to 'scripts-build')
| -rw-r--r-- | scripts-build/sdep-checkpast | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts-build/sdep-checkpast b/scripts-build/sdep-checkpast new file mode 100644 index 0000000..66d6eec --- /dev/null +++ b/scripts-build/sdep-checkpast | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Run this at boot to receive a notification about past events that you might | ||
| 4 | # have missed | ||
| 5 | # | ||
| 6 | # The events are read from the following files in /home/sebastiano/.local/share/sdep folder: | ||
| 7 | # once: events that only happen once; full date needs to be specified | ||
| 8 | # daily: events that happen every day; only specify the time in HH:MM format | ||
| 9 | # weekly: only specify Weekday + time | ||
| 10 | # monthly: only specify day of the month + time | ||
| 11 | |||
| 12 | # Requires: notify-send. | ||
| 13 | |||
| 14 | notify="notify-send -t 3600000" | ||
| 15 | |||
| 16 | sdep-list past | \ | ||
| 17 | while read text; do | ||
| 18 | date=$(echo "$text" | sed 's/\t.*//') | ||
| 19 | event=$(echo "$text" | sed 's/.*\t//') | ||
| 20 | $notify "$date" "$event" | ||
| 21 | done | ||
