Commit d75ce880 authored by dawidd6's avatar dawidd6

fix for mpc detection

parent acd72571
......@@ -1192,7 +1192,7 @@ getmemory () {
# Song {{{
getsong () {
if pgrep "mpd" >/dev/null 2>&1; then
if hash "mpc" >/dev/null 2>&1; then
song="$(mpc current 2>/dev/null)"
state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment