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.

16 lines
230 B
Bash

#!/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"
last="$cur"
done