pinosaur
/
dotfiles.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zahutra
[dotfiles.git]
/
Scripts
/
mpd-change
diff --git
a/Scripts/mpd-change
b/Scripts/mpd-change
index
470dcb7
..
ad71e6d
100755
(executable)
--- a/
Scripts/mpd-change
+++ b/
Scripts/mpd-change
@@
-11,10
+11,9
@@
do
# make sure the song acc changed
cur_song="$(mpc current)"
# make sure the song acc changed
cur_song="$(mpc current)"
- [ "$cur_song" =
=
"$playing" ] && continue;
+ [ "$cur_song" = "$playing" ] && continue;
playing="$cur_song";
playing="$cur_song";
-
[ -z "$cur_song" ] && continue; # don't send notify if no song tho
out="${cur_song%.*}" # get rid of extension
[ -z "$cur_song" ] && continue; # don't send notify if no song tho
out="${cur_song%.*}" # get rid of extension