summary refs log tree commit diff
path: root/bin/play-music
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-09-27 17:38:39 +0200
committerRobert Günzler <r@gnzler.io>2026-09-27 17:38:39 +0200
commit0860db73ae6fd9a6f6347219d820bf026a6b8b91 (patch)
tree11318c3670d1c32c5aa0bf404c22fba3bf63fc53 /bin/play-music
parent4e34cbf9673aeaba252e01df554a0d204e83c5e2 (diff)
downloaddotfiles-master.tar.gz
Automated-commit-by: dots
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bin/play-music')
-rwxr-xr-xbin/play-music9
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