mpd2nheko: remove status if nothing is playing
This commit is contained in:
parent
2cdbc7dbed
commit
c14c729ede
|
@ -9,6 +9,9 @@ local oldstatus
|
||||||
while :; do
|
while :; do
|
||||||
local title=$(mpc current --format '%title%')
|
local title=$(mpc current --format '%title%')
|
||||||
if [[ -z ${title} ]]; then
|
if [[ -z ${title} ]]; then
|
||||||
|
dbus-send --print-reply \
|
||||||
|
--dest=im.nheko.Nheko / im.nheko.Nheko.setStatusMessage \
|
||||||
|
"string:"
|
||||||
sleep 10s
|
sleep 10s
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue