You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
set -eu
|
|
file="$1"
|
|
str='Current'
|
|
interval=5
|
|
ding="/usr/share/bzflag/pop.wav"
|
|
|
|
last="$(grep "$str" "$file")"
|
|
while sleep $interval
|
|
do
|
|
cur="$(grep "$str" "$file")"
|
|
test "$cur" != "$last" && {
|
|
mpv "$ding"
|
|
date
|
|
}
|
|
last="$cur"
|
|
done
|