blob: 8231c045f4bf4de3e613ce4848971868fbbf2294 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/env bash
name="$(mpc -f '%title%' | head -1)"
offline="$(echo $name | grep -E 'volume:|MPD')"
if [[ $offline ]]
then
name="MPD off"
else
name="$name"
fi
echo $name
|