summaryrefslogtreecommitdiff
path: root/bin/extra/202020
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-12-18 13:28:28 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-12-18 13:28:28 +0100
commit6156f88867f5e4d13227de65f2aa930e81b76fea (patch)
tree4a1e66aca45b7baf95104c6b61a93bcc4526e19e /bin/extra/202020
parent0a69f01a5f7f67bd771fd983aa8ba4146cbafcc8 (diff)
checkpoint
Diffstat (limited to 'bin/extra/202020')
-rwxr-xr-xbin/extra/20202021
1 files changed, 15 insertions, 6 deletions
diff --git a/bin/extra/202020 b/bin/extra/202020
index 1386058..35ce1c9 100755
--- a/bin/extra/202020
+++ b/bin/extra/202020
@@ -1,14 +1,23 @@
#!/bin/sh
-mpvwopts="mpv --no-resume-playback --volume=100"
+mpvCommand="mpv --no-resume-playback --volume=100"
sounds="$HOME/sync/share/sounds"
-while true
-do
+if [ "$1" ]; then
+ $mpvCommand "$sounds"/avert1.ogg &
+ herbe '202020' 'avert!' &
+ sleep 20s
+ $mpvCommand "$sounds"/avert2.ogg &
+ herbe '202020' 'stop averting' &
+
+ exit
+fi
+
+while true; do
sleep 20m
- $mpvwopts "$sounds"/avert1.ogg &
- herbe '202020' 'avert!'
+ $mpvCommand "$sounds"/avert1.ogg &
+ herbe '202020' 'avert!' &
sleep 20s
- $mpvwopts "$sounds"/avert2.ogg &
+ $mpvCommand "$sounds"/avert2.ogg &
herbe '202020' 'stop averting' &
done