From c14c729ede985ba04975ff4193411485a93c5bb8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 7 Dec 2022 17:26:13 +0100 Subject: [PATCH] mpd2nheko: remove status if nothing is playing --- .local/bin/mpd2nheko | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.local/bin/mpd2nheko b/.local/bin/mpd2nheko index 4e36ee7..f6c3e54 100755 --- a/.local/bin/mpd2nheko +++ b/.local/bin/mpd2nheko @@ -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