28 lines
463 B
Bash
Executable File
28 lines
463 B
Bash
Executable File
#!/bin/sh
|
|
. ~/.bin/_config
|
|
needs amused--
|
|
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
DIR="$PWD"
|
|
echo "No parameter supplied, scraping current dir: $PWD"
|
|
else
|
|
DIR="$1"
|
|
fi
|
|
|
|
amused stop
|
|
|
|
find "$DIR" -type f -iname "*.flac" \
|
|
-o -iname "*.mp3" \
|
|
-o -iname "*.ogg" \
|
|
-o -iname "*.m4a" \
|
|
-o -iname "*.aac" \
|
|
-o -iname "*.wav" \
|
|
-o -iname "*.aiff" \
|
|
| amused load
|
|
|
|
amused play
|
|
|
|
|