mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
13 lines
400 B
Plaintext
13 lines
400 B
Plaintext
|
#!/usr/bin/env sh
|
||
|
|
||
|
# Description: Play random music from current directory. Identifies MP3, FLAC, WEBM, WMA.
|
||
|
# You may want to change the PLAYER.
|
||
|
#
|
||
|
# Shell: POSIX compliant
|
||
|
# Author: Arun Prakash Jana
|
||
|
|
||
|
PLAYER=smplayer
|
||
|
|
||
|
find . -type f \( -iname "*.mp3" -o -iname "*.flac" -o -iname "*.webm" -o -iname "*.wma" \) | sort -R | head -n 100 | xargs -d "\n" "$PLAYER" > /dev/null 2>&1 &
|
||
|
disown
|