diff options
author | Rasmus Steinke <rasi@xssn.at> | 2017-07-26 15:26:06 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2017-07-26 15:26:06 +0200 |
commit | e3a5374d9a39a00f771943de3dd24b584033dc31 (patch) | |
tree | 10ff9de4366c9658d53e6591fbc1b583687e15b9 | |
parent | 3072639cbb079ce7e637b0af4aef8872bcb7d6a5 (diff) | |
download | perl-app-clerk-e3a5374d9a39a00f771943de3dd24b584033dc31.tar.gz perl-app-clerk-e3a5374d9a39a00f771943de3dd24b584033dc31.tar.xz |
Add Playlists support
-rwxr-xr-x | clerk_fzf/clerk_fzf | 14 |
1 files changed, 6 insertions, 8 deletions
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 |