diff options
| author | Robert Günzler <r@gnzler.io> | 2026-09-27 17:38:39 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-09-27 17:38:39 +0200 |
| commit | 0860db73ae6fd9a6f6347219d820bf026a6b8b91 (patch) | |
| tree | 11318c3670d1c32c5aa0bf404c22fba3bf63fc53 /bin/play-music | |
| parent | 4e34cbf9673aeaba252e01df554a0d204e83c5e2 (diff) | |
| download | dotfiles-master.tar.gz | |
Automated-commit-by: dots Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
| -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 |