mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
song: Fix matching
This commit is contained in:
4
neofetch
4
neofetch
@@ -2313,7 +2313,7 @@ get_memory() {
|
||||
}
|
||||
|
||||
get_song() {
|
||||
player="$(ps -e | grep -m 1 -o \
|
||||
player="$(ps -e | grep -m 1 \
|
||||
-e "Google Play" \
|
||||
-e "Spotify" \
|
||||
-e "amarok" \
|
||||
@@ -2345,6 +2345,8 @@ get_song() {
|
||||
-e "yarock" \
|
||||
-e "sayonara" \
|
||||
-e "vlc")"
|
||||
player="${player/* }"
|
||||
player="${player##*/}"
|
||||
|
||||
[[ "$music_player" && "$music_player" != "auto" ]] && \
|
||||
player="$music_player"
|
||||
|
Reference in New Issue
Block a user