summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-09-02 20:42:03 +0200
committerRasmus Steinke <rasi@xssn.at>2015-09-02 20:42:03 +0200
commit3e2e6312b1a48100e99f6fc7133a3f5bf0e9ef4e (patch)
tree094e43e17be7a41ae225e4749a4db0f4bb742581
parent67ee82bee42a3582e96bb066ff03d21c06f18e63 (diff)
downloadperl-app-clerk-3e2e6312b1a48100e99f6fc7133a3f5bf0e9ef4e.tar.gz
perl-app-clerk-3e2e6312b1a48100e99f6fc7133a3f5bf0e9ef4e.tar.xz
properly end clerk on ESC
-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