diff options
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/!/bin/bash +#!/bin/bash shopt -s globstar source $HOME/.config/clerk/config @@ -1354,22 +1354,22 @@ browseGenre() { browseGenre2() { declare -i seen=0 - while read GENRE + while read ARTIST do seen=1 export GENRE="$GENRE" - if [[ "$GENRE" == "0 Return to Genre Menu" ]] + if [[ "$ARTIST" == "0 Return to Genre Menu" ]] then browseGenre - elif [[ "$GENRE" == "Replace All" ]] + elif [[ "$ARTIST" == "Replace All" ]] then mpc clear && mpc add / && mpc play - elif [[ "$GENRE" == "Add All" ]] + elif [[ "$ARTIST" == "Add All" ]] then mpc add / - elif [[ "$GENRE" == "Insert All" ]] + elif [[ "$ARTIST" == "Insert All" ]] then mpc insert / else browseAlbum fi - done < <(echo -e "0 Return to Main Menu\n---\nAdd All\nInsert all\nReplace all\n---\n$(mpc list artist genre "$GENRE")" | dmenu_t -dmenu -p "Choose Genre > ") + done < <(echo -e "0 Return to Genre Menu\n---\nAdd All\nInsert all\nReplace all\n---\n$(mpc list artist genre "$GENRE")" | dmenu_t -dmenu -p "Choose Genre > ") if [[ $seen = 0 ]] then |