aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/workout-notify
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/workout-notify')
-rwxr-xr-x.local/bin/workout-notify5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/bin/workout-notify b/.local/bin/workout-notify
new file mode 100755
index 0000000..6934a45
--- /dev/null
+++ b/.local/bin/workout-notify
@@ -0,0 +1,5 @@
+#!/bin/sh -eu
+workout=$(fortune ~/Documents/text/databases/exercises.fortune);
+notify-send -u critical \
+"You have $(shuf -i 10-25 -n1) minutes to complete \
+$(shuf -i "${workout%% *}" -n1) ${workout#* }.";