9 lines
191 B
Bash
Executable file
9 lines
191 B
Bash
Executable file
#!/bin/sh
|
|
|
|
state=$(mpc -f %title% | awk 'NR==2 {print $1}')
|
|
|
|
[ -z "$state" ] && state="[stopped]"
|
|
|
|
printf "mus: %s" "${state:1:-1}"
|
|
|
|
pidof -x mpdup >/dev/null 2>&1 || mpdup >/dev/null 2>&1 &
|