diff options
Diffstat (limited to '.local/bin/workout-notify')
-rwxr-xr-x | .local/bin/workout-notify | 5 |
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#* }."; |