summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk8
1 files changed, 8 insertions, 0 deletions
diff --git a/clerk b/clerk
index 3895bc2..8a1b175 100755
--- a/clerk
+++ b/clerk
@@ -699,6 +699,10 @@ TRACKDISPLAY=$(echo -e "< Return\n---\n$(songs)" | dmenu_t -kb-custom-1 "${delet
# show all mpd playlists and load them to queue
dplayQueueLoad () {
playlist=$(echo -e "< Return\n---\n$(mpc lsplaylists)" | dmenu_t -p "Load Playlist > ")
+ val=$?
+ if [[ $val -eq 1 ]]; then
+ exit
+ fi
if [[ "$playlist" == "< Return" ]]; then
dplayQueue
else
@@ -711,6 +715,10 @@ dplayQueueLoad () {
dplayQueueSave () {
while read playlists
do
+ val=$?
+ if [[ $val -eq 1 ]]; then
+ exit
+ fi
if [[ "$playlists" == "< Return" ]]; then
dplayQueue
elif [[ "$playlists" == "Save new Playlist" ]]; then