#!/bin/bash if mpc -q; then case "$(mpc status | sed -n '2s/\[\(\w*\)\].*/\1/p')" in "playing") icon="" ;; *) icon="" ;; esac echo ''"$icon"'' fi