Commit 7aa3bd8f authored by Dawid's avatar Dawid

changed mpc according to @dylanaraps suggestion

parent d75ce880
......@@ -1192,7 +1192,7 @@ getmemory () {
# Song {{{
getsong () {
if hash "mpc" >/dev/null 2>&1; then
if mpc version >/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