1
0
Fork 0

mpd2nheko: remove status if nothing is playing

This commit is contained in:
tastytea 2022-12-07 17:26:13 +01:00
parent 2cdbc7dbed
commit c14c729ede
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ local oldstatus
while :; do
local title=$(mpc current --format '%title%')
if [[ -z ${title} ]]; then
dbus-send --print-reply \
--dest=im.nheko.Nheko / im.nheko.Nheko.setStatusMessage \
"string:"
sleep 10s
continue
fi