mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
song: Fix itunes issue.
This commit is contained in:
6
neofetch
6
neofetch
@@ -2317,7 +2317,9 @@ get_memory() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_song() {
|
get_song() {
|
||||||
player="$(ps -e | grep -m 1 -F \
|
player="$(ps -e)"
|
||||||
|
player="${player/iTunesHelper}"
|
||||||
|
player="$(grep -m 1 -F \
|
||||||
-e "Google Play" \
|
-e "Google Play" \
|
||||||
-e "Spotify" \
|
-e "Spotify" \
|
||||||
-e "amarok" \
|
-e "amarok" \
|
||||||
@@ -2348,7 +2350,7 @@ get_song() {
|
|||||||
-e "xmms2d" \
|
-e "xmms2d" \
|
||||||
-e "yarock" \
|
-e "yarock" \
|
||||||
-e "sayonara" \
|
-e "sayonara" \
|
||||||
-e "vlc")"
|
-e "vlc" -- <<< "$player")"
|
||||||
player="${player/* }"
|
player="${player/* }"
|
||||||
player="${player##*/}"
|
player="${player##*/}"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user