i3-companion: tentative to register for battery update from PulseAudio

Unfortunately, I am unable to receive anything... Maybe the path not
existing when registering does not help.
This commit is contained in:
Vincent Bernat 2022-04-09 12:17:09 +02:00
parent 48afaab4c7
commit 59382c1739

View file

@ -743,6 +743,15 @@ async def bluetooth_notifications(i3, event, path, interface, changed, invalid):
and "Percentage" in args[1]
),
),
DBusSignal(
path="/org/pulseaudio",
interface="org.freedesktop.DBus.Properties",
member="PropertiesChanged",
signature="sa{sv}as",
onlyif=lambda args: (
args[0] == "org.bluez.BatteryProvider1" and "Percentage" in args[1]
),
),
)
@retry(2)
@debounce(1)