From e3a5374d9a39a00f771943de3dd24b584033dc31 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Wed, 26 Jul 2017 15:26:06 +0200 Subject: Add Playlists support --- clerk_fzf/clerk_fzf | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'clerk_fzf') diff --git a/clerk_fzf/clerk_fzf b/clerk_fzf/clerk_fzf index d97498c..dcecbfe 100755 --- a/clerk_fzf/clerk_fzf +++ b/clerk_fzf/clerk_fzf @@ -259,6 +259,7 @@ playlists () { if [[ $plsmenu == "Save current Queue as Playlist" ]]; then mpc save "$(date +'%Y-%m-%d_%H:%M:%S').m3u" tmux findw -t music queue + $(${script}) else playlistactions fi @@ -277,9 +278,11 @@ playlistactions () { if [[ $plmenu == "Load Playlist" ]]; then mpc clear > /dev/null; mpc load "${plsmenu}" > /dev/null; mpc play > /dev/null tmux findw -t music queue + $(${script}) elif [[ $plmenu == "Add Playlist" ]]; then mpc load "${plsmenu}" > /dev/null tmux findw -t music queue + $(${script}) elif [[ $plmenu == "Cancel" ]]; then playlists fi @@ -367,14 +370,7 @@ if [[ $1 == "--help" || $1 == "-h" ]]; then echo "--kill kill running clerk sessions" elif [[ $1 == "--kill" ]]; then tmux kill-session -t music -else - clerk_start -fi - - - - -if [[ $1 == "--albums" ]]; then +elif [[ $1 == "--albums" ]]; then albums elif [[ $1 == "--tracks" ]]; then tracks @@ -392,4 +388,6 @@ elif [[ $1 == "--caches" ]]; then updateCache elif [[ $1 == "--playlists" ]]; then playlists +else + clerk_start fi -- cgit v1.2.3-24-g4f1b