Unverified Commit e8ab52de authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #1003 from dylanaraps/song_fix

song: Fix matching
parents b4fc29e6 33d6dd76
...@@ -2317,7 +2317,7 @@ get_memory() { ...@@ -2317,7 +2317,7 @@ get_memory() {
} }
get_song() { get_song() {
player="$(ps -e | grep -m 1 -o \ player="$(ps -e | grep -m 1 -F \
-e "Google Play" \ -e "Google Play" \
-e "Spotify" \ -e "Spotify" \
-e "amarok" \ -e "amarok" \
...@@ -2349,6 +2349,8 @@ get_song() { ...@@ -2349,6 +2349,8 @@ get_song() {
-e "yarock" \ -e "yarock" \
-e "sayonara" \ -e "sayonara" \
-e "vlc")" -e "vlc")"
player="${player/* }"
player="${player##*/}"
[[ "$music_player" && "$music_player" != "auto" ]] && \ [[ "$music_player" && "$music_player" != "auto" ]] && \
player="$music_player" player="$music_player"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment