From 02b1d7194a12c1cd7b102820b490256f1387def2 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 5 Oct 2020 12:53:07 -0700 Subject: [PATCH] added short music script wrapper because mocp blows --- music | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 music diff --git a/music b/music new file mode 100755 index 0000000..f0b4670 --- /dev/null +++ b/music @@ -0,0 +1,10 @@ +#!/bin/sh + +choice=`find "$HOME"/Music/ -maxdepth 1 -type d | dmenu -i -l 25 -p "Pick an Album"` + +echo Playing: $choice + +if [ ! -z "$choice" ];then + ls -1 "$choice"/*.mp3 | xargs --delimiter='\n' mocp --playit +fi +