From 936b3b6b73ff1e341ddafaa47afdecbdec10eee7 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Mon, 22 Oct 2018 22:21:12 +1100 Subject: [PATCH] get_song: stop iTunesHelper from being detected --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 400db8ff..1b33bb8e 100755 --- a/neofetch +++ b/neofetch @@ -2358,7 +2358,7 @@ get_song() { printf -v players "|%s" "${players[@]}" player="$(ps aux | awk -v pattern="(${players:1})" \ - '!/ awk / && match($0,pattern){print substr($0,RSTART,RLENGTH); exit}')" + '!/ awk / && !/iTunesHelper/ && match($0,pattern){print substr($0,RSTART,RLENGTH); exit}')" [[ "$music_player" && "$music_player" != "auto" ]] && \ player="$music_player"