Guest User

Untitled

a guest
Jan 12th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function SelectSong {
  2. randMp3="$(echo -e "scale=0 \n${numMp3s}*${RANDOM}/32767 \nquit" | bc)"
  3. mp3Name="$(echo "$(find ${mp3dir} -name "*.mp3" -print | awk 'NR=='${randMp3}' {print $0}')")"
  4. #echo -n "\"${mp3Name}\" "
  5. rhythmbox-client --no-start --play-uri="${mp3Name}"
  6. }
Add Comment
Please, Sign In to add comment