scripts-bash/run_music_background

26 lines
457 B
Plaintext
Raw Normal View History

#!/bin/bash
path_files=/home/cedric24c/Musique/non_stop_music
files=($path_files/*)
2022-03-28 18:51:39 +02:00
<<<<<<< HEAD
volume=0.06
2022-03-28 18:51:39 +02:00
=======
volume=0.02
>>>>>>> 0150ef4 (Initialisation)
echo Process number $$
echo Path files : $path_files
echo Number of files in the path : ${#files[@]}
while [ 1 ];do
file=${files["$[RANDOM % ${#files[@]}]"]}
echo Now playing $file
play -v $volume "$file" &> /dev/null
done
2022-03-28 18:51:39 +02:00
<<<<<<< HEAD
=======
>>>>>>> 0150ef4 (Initialisation)