diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-09 19:13:45 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-09 19:13:45 +0100 |
| commit | 0bcca7b6808a02af3c4758c30eec9984d44dfac7 (patch) | |
| tree | 34d1e08904229c797e9aa07e656bbe2eb30d7f40 /scripts-build/sdep-checkpast | |
| parent | c88e94d631b09d6f0839b4f96df2be974b23217e (diff) | |
| download | sdep-0bcca7b6808a02af3c4758c30eec9984d44dfac7.tar.gz sdep-0bcca7b6808a02af3c4758c30eec9984d44dfac7.zip | |
Changed notification system to herbe.
Diffstat (limited to 'scripts-build/sdep-checkpast')
| -rw-r--r-- | scripts-build/sdep-checkpast | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts-build/sdep-checkpast b/scripts-build/sdep-checkpast deleted file mode 100644 index 66d6eec..0000000 --- a/scripts-build/sdep-checkpast +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 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 | ||
