Merge pull request #1003 from dylanaraps/song_fix

song: Fix matching
This commit is contained in:
Dylan Araps 2018-05-24 08:43:32 +00:00 committed by GitHub
commit e8ab52de7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2317,7 +2317,7 @@ get_memory() {
}
get_song() {
player="$(ps -e | grep -m 1 -o \
player="$(ps -e | grep -m 1 -F \
-e "Google Play" \
-e "Spotify" \
-e "amarok" \
@ -2349,6 +2349,8 @@ get_song() {
-e "yarock" \
-e "sayonara" \
-e "vlc")"
player="${player/* }"
player="${player##*/}"
[[ "$music_player" && "$music_player" != "auto" ]] && \
player="$music_player"