diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | scripts-build/sdep-checkpast | 21 |
2 files changed, 22 insertions, 1 deletions
| @@ -50,7 +50,7 @@ scripts: | |||
| 50 | > scripts-build/$$s ;\ | 50 | > scripts-build/$$s ;\ |
| 51 | done | 51 | done |
| 52 | 52 | ||
| 53 | scriptsinstall: | 53 | scriptsinstall: scripts |
| 54 | for s in ${SCRIPTS}; do\ | 54 | for s in ${SCRIPTS}; do\ |
| 55 | cp -f scripts-build/$$s ${DESTDIR}${PREFIX}/bin ; \ | 55 | cp -f scripts-build/$$s ${DESTDIR}${PREFIX}/bin ; \ |
| 56 | chmod 755 ${DESTDIR}${PREFIX}/bin/$$s ;\ | 56 | chmod 755 ${DESTDIR}${PREFIX}/bin/$$s ;\ |
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 | ||
