daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top