X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=Scripts%2Fmpd-change;fp=Scripts%2Fmpd-change;h=ad71e6d3bcd76ed6d2f2cf6678d3cc53fc9ae6d4;hp=470dcb7765c6f2cf4620ba4d8d6cb2fcc63ade2b;hb=280abf6fd7d3541bf0bed20c9335f640087de257;hpb=77791e874daf9286ba53393970d1beec7df3dd5b diff --git a/Scripts/mpd-change b/Scripts/mpd-change index 470dcb7..ad71e6d 100755 --- a/Scripts/mpd-change +++ b/Scripts/mpd-change @@ -11,10 +11,9 @@ do # make sure the song acc changed cur_song="$(mpc current)" - [ "$cur_song" == "$playing" ] && continue; + [ "$cur_song" = "$playing" ] && continue; playing="$cur_song"; - [ -z "$cur_song" ] && continue; # don't send notify if no song tho out="${cur_song%.*}" # get rid of extension