diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-05 19:49:12 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-05 19:49:12 +0100 |
commit | a7309ce61c093caeb554c20497f4e4b765073203 (patch) | |
tree | 6e7c9e559253f0f0584175c582624eec29a0d5cb /bin/extra/202020 | |
parent | 58bf86c706c5a442da4fb01ea26e06f1ed291d45 (diff) | |
parent | 112449dd19eaae6769ef95a70b3e52234256400c (diff) |
checkpoint
Diffstat (limited to 'bin/extra/202020')
-rwxr-xr-x | bin/extra/202020 | 21 |
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 |