i3-companion: also listen to org.bluez.Device1 ServicesResolved

This is useful to get battery status on connect since it can be a bit late.
This commit is contained in:
Vincent Bernat 2024-07-05 20:17:09 +02:00
parent 573b9c472c
commit 4ef90a4534

View file

@ -782,6 +782,8 @@ async def bluetooth_notifications(i3, event, path, interface, changed, invalid):
onlyif=lambda args: (
args[0] == "org.bluez.Device1"
and "Connected" in args[1]
or args[0] == "org.bluez.Device1"
and "ServicesResolved" in args[1]
or args[0] == "org.bluez.Adapter1"
and "Powered" in args[1]
or args[0] == "org.bluez.Battery1"