script
This commit is contained in:
@@ -22,14 +22,17 @@ main() {
|
||||
trap cleanup EXIT
|
||||
|
||||
for f in ./script.d/*.wav; do
|
||||
export f=$f
|
||||
if [ "$#" != "0" ]; then
|
||||
eval "$1"
|
||||
echo "> $1"
|
||||
bash -c "true; $1"
|
||||
else
|
||||
read -p "enter to play <$f>"
|
||||
fi
|
||||
mpv --no-video "$f" &
|
||||
export pid=${!}
|
||||
block_proc $pid
|
||||
break
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user