diff options
Diffstat (limited to 'bin/play-music')
| -rwxr-xr-x | bin/play-music | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/play-music b/bin/play-music index 14e91f1..554d93f 100755 --- a/bin/play-music +++ b/bin/play-music @@ -20,4 +20,13 @@ select) subdir=$(find . -type d -printf "%P\n" | shuf | fuzzel -d -w 80) mpa "$subdir" ;; +playlists) + cd $music_dir + playlist=$(find . -maxdepth 1 -name '*.m3u' -printf "%P\n" | shuf | fuzzel -d -w 80) + mpa "$playlist" + ;; +*) + shift + mpa "$@" + ;; esac |