song: Fix itunes issue.

This commit is contained in:
Dylan Araps 2018-05-25 04:57:18 +10:00
parent e8ab52de7d
commit cb81e21ee2

View file

@ -2317,38 +2317,40 @@ get_memory() {
} }
get_song() { get_song() {
player="$(ps -e | grep -m 1 -F \ player="$(ps -e)"
-e "Google Play" \ player="${player/iTunesHelper}"
-e "Spotify" \ player="$(grep -m 1 -F \
-e "amarok" \ -e "Google Play" \
-e "audacious" \ -e "Spotify" \
-e "banshee" \ -e "amarok" \
-e "bluemindo" \ -e "audacious" \
-e "clementine" \ -e "banshee" \
-e "cmus" \ -e "bluemindo" \
-e "deadbeef" \ -e "clementine" \
-e "deepin-music" \ -e "cmus" \
-e "elisa" \ -e "deadbeef" \
-e "exaile" \ -e "deepin-music" \
-e "gnome-music" \ -e "elisa" \
-e "guayadeque" \ -e "exaile" \
-e "iTunes" \ -e "gnome-music" \
-e "juk" \ -e "guayadeque" \
-e "lollypop" \ -e "iTunes" \
-e "mocp" \ -e "juk" \
-e "mopidy" \ -e "lollypop" \
-e "mpd" \ -e "mocp" \
-e "pogo" \ -e "mopidy" \
-e "pragha" \ -e "mpd" \
-e "qmmp" \ -e "pogo" \
-e "quodlibet" \ -e "pragha" \
-e "rhythmbox" \ -e "qmmp" \
-e "spotify" \ -e "quodlibet" \
-e "tomahawk" \ -e "rhythmbox" \
-e "xmms2d" \ -e "spotify" \
-e "yarock" \ -e "tomahawk" \
-e "sayonara" \ -e "xmms2d" \
-e "vlc")" -e "yarock" \
-e "sayonara" \
-e "vlc" -- <<< "$player")"
player="${player/* }" player="${player/* }"
player="${player##*/}" player="${player##*/}"