mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-22 09:53:28 +02:00
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:
parent
573b9c472c
commit
4ef90a4534
1 changed files with 2 additions and 0 deletions
|
@ -782,6 +782,8 @@ async def bluetooth_notifications(i3, event, path, interface, changed, invalid):
|
||||||
onlyif=lambda args: (
|
onlyif=lambda args: (
|
||||||
args[0] == "org.bluez.Device1"
|
args[0] == "org.bluez.Device1"
|
||||||
and "Connected" in args[1]
|
and "Connected" in args[1]
|
||||||
|
or args[0] == "org.bluez.Device1"
|
||||||
|
and "ServicesResolved" in args[1]
|
||||||
or args[0] == "org.bluez.Adapter1"
|
or args[0] == "org.bluez.Adapter1"
|
||||||
and "Powered" in args[1]
|
and "Powered" in args[1]
|
||||||
or args[0] == "org.bluez.Battery1"
|
or args[0] == "org.bluez.Battery1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue