song: Fix matching
This commit is contained in:
parent
14981205c6
commit
130b7028ef
1 changed files with 3 additions and 1 deletions
4
neofetch
4
neofetch
|
@ -2313,7 +2313,7 @@ get_memory() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_song() {
|
get_song() {
|
||||||
player="$(ps -e | grep -m 1 -o \
|
player="$(ps -e | grep -m 1 \
|
||||||
-e "Google Play" \
|
-e "Google Play" \
|
||||||
-e "Spotify" \
|
-e "Spotify" \
|
||||||
-e "amarok" \
|
-e "amarok" \
|
||||||
|
@ -2345,6 +2345,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"
|
||||||
|
|
Loading…
Reference in a new issue