aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/scripts/workout-notify
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-06-01 01:55:02 -0400
committertdro <tdro@users.noreply.github.com>2020-06-01 02:02:14 -0400
commit700e91873d98010f59d9603876e0ac499da06957 (patch)
treed31e8038730fb5c22f3a40ead1ac9d4b50fc592c /.local/bin/scripts/workout-notify
parentf83d9db2c10ea52e25052b769fd09c1e8477c45a (diff)
downloaddotfiles-700e91873d98010f59d9603876e0ac499da06957.tar.gz
dotfiles-700e91873d98010f59d9603876e0ac499da06957.tar.bz2
dotfiles-700e91873d98010f59d9603876e0ac499da06957.zip
.config/systemd/user: Add workout notify
Diffstat (limited to '.local/bin/scripts/workout-notify')
-rwxr-xr-x.local/bin/scripts/workout-notify5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/bin/scripts/workout-notify b/.local/bin/scripts/workout-notify
new file mode 100755
index 0000000..12b0615
--- /dev/null
+++ b/.local/bin/scripts/workout-notify
@@ -0,0 +1,5 @@
+#!/bin/sh
+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#* }.";