aboutsummaryrefslogtreecommitdiff
path: root/scripts-build
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2022-01-19 09:13:38 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2022-01-19 09:13:38 +0100
commit12758e9484429ca6d013b15e22af84827ae37700 (patch)
tree4a77cf0f7a6b158525f9fb66e10e210d33a1411b /scripts-build
parent2124cd25740fb5a4081ef20305e9b8fdbdfa47f6 (diff)
downloadsdep-12758e9484429ca6d013b15e22af84827ae37700.tar.gz
sdep-12758e9484429ca6d013b15e22af84827ae37700.zip
Small fixes
Diffstat (limited to 'scripts-build')
-rw-r--r--scripts-build/sdep-checkpast21
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
14notify="notify-send -t 3600000"
15
16sdep-list past | \
17while read text; do
18 date=$(echo "$text" | sed 's/\t.*//')
19 event=$(echo "$text" | sed 's/.*\t//')
20 $notify "$date" "$event"
21done

Generated with cgit - Back to sebastiano.tronto.net