diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-09-02 20:42:03 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-09-02 20:42:03 +0200 |
commit | 3e2e6312b1a48100e99f6fc7133a3f5bf0e9ef4e (patch) | |
tree | 094e43e17be7a41ae225e4749a4db0f4bb742581 | |
parent | 67ee82bee42a3582e96bb066ff03d21c06f18e63 (diff) | |
download | perl-app-clerk-3e2e6312b1a48100e99f6fc7133a3f5bf0e9ef4e.tar.gz perl-app-clerk-3e2e6312b1a48100e99f6fc7133a3f5bf0e9ef4e.tar.xz |
properly end clerk on ESC
-rwxr-xr-x | clerk | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |