From 0c41c285a76e068f7632cfe1e31c3486368a4252 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 26 Oct 2016 18:09:59 +1100 Subject: [PATCH] Fix processes with paths in name' --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index dd03065b..99b0e665 100755 --- a/neofetch +++ b/neofetch @@ -1122,7 +1122,7 @@ getmemory() { getsong() { player="$(ps x | awk '!(/awk|Helper|Cache/) && /mpd|cmus|mocp|spotify|Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious/ {printf $5 " " $6; exit}')" - case "$player" in + case "${player/*\/}" in "mpd"*) song="$(mpc current 2>/dev/null)" state="$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null)"